query: javascript - scope of local variables in function expressions and declarations
positive_passages.docid: 1054
positive_passages.text: How do JavaScript closures work?
negative_passages.docid: 108473
negative_passages.text: How to access a function inside a function?
negative_passages.docid: 2701
negative_passages.text: Assigning to variable from parent function: "Local variable referenced before assignment"
negative_passages.docid: 121668
negative_passages.text: How to avoid global variables in JavaScript?
negative_passages.docid: 12655
negative_passages.text: Don't understand why UnboundLocalError occurs (closure)
negative_passages.docid: 27136
negative_passages.text: Reference: What is variable scope, which variables are accessible from where and what are "undefined variable" errors?
negative_passages.docid: 33125
negative_passages.text: Unbound Local Error with global variable
negative_passages.docid: 97008
negative_passages.text: Returning a function built with local (block) variables
negative_passages.docid: 104823
negative_passages.text: Detailed Explanation of Variable Capture in Closures
negative_passages.docid: 10982
negative_passages.text: What is the difference between a function expression vs declaration in JavaScript?
negative_passages.docid: 62927
negative_passages.text: Python scope: "UnboundLocalError: local variable 'c' referenced before assignment"
negative_passages.docid: 138754
negative_passages.text: Variable scoping in Module
negative_passages.docid: 1993
negative_passages.text: Javascript Closures and 'this'
negative_passages.docid: 113603
negative_passages.text: Declare local variables as late as possible or at the nearest curly brace they belong?
negative_passages.docid: 145985
negative_passages.text: What is the advantage of initializing multiple javascript variables with the same var keyword?
negative_passages.docid: 91047
negative_passages.text: Pre-declare all private/local variables?
negative_passages.docid: 99859
negative_passages.text: What is the difference between def func(var) and def func=(var)?