Discussion :: Javascript MCQs
- What will happen if a return statement does not have an associated expression?
A.
It returns the value 0
|
B.
It will throw an exception
|
C.
It returns the undefined value
|
D.
None of the mentioned
|
Answer : Option C
Explanation :
If the return statement does not have an associated expression, it returns the undefined value.
Be The First To Comment