NoReturnValue
DRAFT

Misconception:

Functions that do not contain return statements return no value at all.

Incorrect

Functions without return statements return no value at all

Correct

Functions without return statements return undefined

Correction
Here is what's right.

In JavaScript all functions return undefined in absence of an explicit return statement.

Language

JavaScript

Concepts

Stay up-to-date

Follow us on  twitter to hear about new misconceptions.