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?
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? Correct Answer Returns the value in scope
Answer: Option 3
The above code snippet returns the value in scope.
মোঃ আরিফুল ইসলাম
Feb 20, 2025