?
Consider the following code snippet :
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));
Answer & Solution
Correct Answer:
Option
A
Function name is optional for functions defined as expressions. Function expressions are sometimes defined and immediately invoked.
Join the Discussion
Login to post a comment or share your explanation.
Login