Question
Consider the following code snippet :
var tensquared = (function(x) {return x*x;}(10));
Will the above code work ?
var tensquared = (function(x) {return x*x;}(10));
Will the above code work ?
Answer: Option A
Submit Your Solution Below and Earn Points !
Submit Your Solution Below and Earn Points !
More Questions on This Topic :
Question 6. What kind of scoping does JavaScript use?....
Question 9. What is a closure?....
Question 10. Which of the following are examples of closures?....
Submit Solution