-
What will happen if a return statement does not have an associated expression?
-
- It will throw an exception
- It will throw an error
- It returns the value 0
- It returns the undefined value
- None of these
Correct Option: D
A function without a return statement will return a default value. ifthe return statement does not have an associated expression then it returns an undefined value.