Q. What output will be returned by the function in the following code?
Code:var scope ="global scope";
functioncheckingscope()
{
var scope ="local scope";
functionf()
{
return scope;
}
return f;
}
β
Correct Answer: (A)
It will returns the value in scope