Examveda
Examveda

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

Solution(By Examveda Team)

If the return statement does not have an associated expression, it returns the undefined value.

This Question Belongs to Javascript >> Array And Function

Join The Discussion

Related Questions on Array and Function