InterviewSolution
Saved Bookmarks
| 1. |
What is closure?(a) Function objects(b) Scope where function’s variables are resolved(c) Both Function objects and Scope where function’s variables are resolved(d) Function return value |
|
Answer» The correct choice is (c) Both Function objects and Scope where function’s variables are resolved The best explanation: A combination of a function object and a scope (a set of variable bindings) in which the function’s variables are resolved is called a closure. |
|