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;  
}  
  • (A) It will returns the value in scope
  • (B) It will returns value null
  • (C) It will returns an exception
  • (D) It will show an error message
πŸ’¬ Discuss
βœ… Correct Answer: (A) It will returns the value in scope

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
260
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate