Question 5
Back to Exercise
What does a function return if it finishes without a return statement?
- A undefined Correct
- B null
- C The value of its last expression
- D 0
Correct Answer: Option A
Only arrow functions with an expression body return implicitly. A normal function body needs an explicit return.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!