Q. What will happen if we execute the following code of JavaScript?

Code:
vartensquared=(function(x){return x*x;}(10));  
  • (A) Memory leak
  • (B) Error
  • (C) Exception will be thrown
  • (D) Yes, perfectly
πŸ’¬ Discuss
βœ… Correct Answer: (D) Yes, perfectly

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
280
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
86%
Success Rate