query: Value of variable in nested function evaluate at definition time rather than at calltime
positive_passages.docid: 5264
positive_passages.text: JavaScript closure inside loops – simple practical example
negative_passages.docid: 68351
negative_passages.text: Why can I use a function before it's defined in JavaScript?
negative_passages.docid: 145569
negative_passages.text: Why does the value returned should be on the same line as the return statement in JavaScript?
negative_passages.docid: 102726
negative_passages.text: Why does C++ parameter scope affect function lookup within a namespace?
negative_passages.docid: 10502
negative_passages.text: Nested definition: How can I define a function with a passed-in expression?
negative_passages.docid: 91295
negative_passages.text: Why does a Try/Catch block create new variable scope?
negative_passages.docid: 140402
negative_passages.text: Do inner functions in JavaScript get hoisted? How do the scoping rules apply to them?
negative_passages.docid: 24596
negative_passages.text: Why can a function modify some arguments as perceived by the caller, but not others?
negative_passages.docid: 39222
negative_passages.text: Is there a difference between return myVar vs. return (myVar)?
negative_passages.docid: 127788
negative_passages.text: Why do I have to put Evaluate[] here
negative_passages.docid: 12462
negative_passages.text: What do (lambda) function closures capture?
negative_passages.docid: 74142
negative_passages.text: Why isn't `method=` treated the same as any other method?
negative_passages.docid: 27225
negative_passages.text: Extracting return value from nested callback function
negative_passages.docid: 132092
negative_passages.text: Passing functions to setTimeout in a loop: always the last value?
negative_passages.docid: 65510
negative_passages.text: Why does this function return a different value every time?
negative_passages.docid: 72080
negative_passages.text: Difference between arguments in setInterval calls
negative_passages.docid: 40578
negative_passages.text: Order of evaluation in C++ function parameters