ExamVeda
Login
Home
This question belongs to Javascript Array And Function
Array and Function
?

Consider the following code snippet :
var tensquared = (function(x) {return x*x;}(10));
Will the above code work ?

Answer & Solution
Correct Answer: Option A
Function name is optional for functions defined as expressions. Function expressions are sometimes defined and immediately invoked.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.