What is a closure?
Function objects
Scope where function’s variables are resolved
Both Function objects and Scope where function’s variables are resolved
Function return value
Correct Answer : C
A function with no return value is called
What is the fundamental rule of lexical scoping?
What will be the function of the following JavaScript code?
var scope = "global scope"; function checkscope() { var scope = "local scope"; function f() { return scope; } return f; }