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