ExamVeda
Login
Home
This question belongs to Javascript Array And Function
Array and Function
?

Consider the following code snippet :
var scope = "global scope";
function checkscope() {
var scope = "local scope"; 
function f() 
{ 
     return scope; 
}
return f;
What is the function of the above code snippet?

Answer & Solution
Correct Answer: Option C
The above code snippet returns the value in scope.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.