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; }
Returns value null
Returns exception
Returns the value in scope
Shows an error message
Correct Answer : C
Which of the following is not an example of closures?
What is the purpose of the dynamic scoping?
Which of the algorithmic languages is not lexical scoping standardized in?