ArrowFunctionNoImpliedReturn
DRAFT

Misconception:

When the whole body of an arrow function consists in just an expression, one still needs to write the keyword return in front of it.

Incorrect

Even when an arrow function consists just of an expression, the return keyword must be explicitly written

Correct

When an arrow function consists just of an expression, the return keyword is implied

Language

JavaScript

Concepts

Stay up-to-date

Follow us on  twitter to hear about new misconceptions.