Report Bug

QusWhen does the function name become optional in JavaScript? Qusजावास्क्रिप्ट में फ़ंक्शन नाम कब वैकल्पिक हो जाता है?


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.
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 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 Best Website and Software Company in Allahabad