NIELIT O Level Exam

When does the function name become optional in JavaScript?

When does the function name become optional in JavaScript?

When does the function name become optional in JavaScript?

A. When the function is defined as a looping statement

B. When the function is defined as expressions

C. When the function is predefined

D. All of the above




Correct Answer is :

B. When the function is defined as expressions



Explanation
The function name is optional for functions defined as expressions. A function declaration statement actually declares a variable and assigns a function object to it.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad