Q. What is the function of this code snippet?
Code:var scope = "global scope";
function checkscope() {
var scope = "local scope";
function f()
{
return scope;
}
return f;
β
Correct Answer: (C)
Returns the value in scope