javascript-closures Flashcards
1
Q
In JavaScript, when is a function’s scope determined; when it is called or when it is defined?
A
defined
2
Q
What allows JavaScript functions to “remember” values from their surroundings?
A
closures