Return
A return statement returns control from a function or method back to its caller.
Related concepts: FunctionMethodCallControl Flow
Closest Wikipedia entry: Return statement
Misconceptions about Return15 documented Misconceptions
Check YourselfArrowFunctionNoImpliedReturn
Even when an arrow function consists just of an expression, the return keyword must be explicitly writtenMapInPlace
Map modifies the elements of the array on which it operates in placeNoReturnValue
Functions without return statements return no value at allSetTimeoutReturnsCallbackResult
SetTimeout returns the value returned by the callback function