Q. Will the following JavaScript code work?
Code:var js = (function(x) {return x*x;}(10));
β
Correct Answer: (D)
Yes, perfectly
Explanation: For functions expressed as expressions, the function name is optional in Javascript. Sometimes function expressions are defined and used right away.