A
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;
}
functioncheckingscope()
{
var scope ="local scope";
functionf()
{
return scope;
}
return f;
}
- Correct Answer - Option(A)
- Views: 26
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.