Examveda
Examveda

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 mentioned

Answer: Option B

Solution(By Examveda Team)

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.

This Question Belongs to Javascript >> Array And Function

Join The Discussion

Related Questions on Array and Function