query: Javascript global variable usage is acting weird in this code
positive_passages.docid: 31180
positive_passages.text: How to return value from an asynchronous callback function?
negative_passages.docid: 58982
negative_passages.text: to Global Variables inside functions
negative_passages.docid: 106906
negative_passages.text: Does JavaScript pass by reference?
negative_passages.docid: 44112
negative_passages.text: "Variable" variables in Javascript?
negative_passages.docid: 91259
negative_passages.text: Change global variable inside JavaScript closure
negative_passages.docid: 59013
negative_passages.text: Use dynamic variable names in JavaScript
negative_passages.docid: 10183
negative_passages.text: "Global variable" in Visual C#
negative_passages.docid: 66350
negative_passages.text: Weird closure behavior in python
negative_passages.docid: 317
negative_passages.text: What is the scope of variables in JavaScript?
negative_passages.docid: 124
negative_passages.text: Is JavaScript a pass-by-reference or pass-by-value language?
negative_passages.docid: 19156
negative_passages.text: Global Variables for Class Methods
negative_passages.docid: 75407
negative_passages.text: How to use a variable in a different function?
negative_passages.docid: 15233
negative_passages.text: Event handler scope in Javascript
negative_passages.docid: 91295
negative_passages.text: Why does a Try/Catch block create new variable scope?
negative_passages.docid: 44145
negative_passages.text: Creating global variable in python 3 from functions
negative_passages.docid: 105287
negative_passages.text: (Why) is using an uninitialized variable undefined behavior?
negative_passages.docid: 19638
negative_passages.text: What is the purpose of the var keyword and when should I use it (or omit it)?