Report Bug

QusWhen does the function name become optional in JavaScript? Qus 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


Solution
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 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz