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 — JavaScript
Even when an arrow function consists just of an expression, the return keyword must be explicitly writtenConstructorReturnsObject — Java
Constructors need to return objectsDeferredReturn — Java
A return statement in the middle of a method doesn't return immediatelyDeferredReturn — Python
A return statement in the middle of a function doesn't return immediatelyInitReturnsObject — Python
__init__ needs to return an objectMapInPlace — JavaScript
Map modifies the elements of the array on which it operates in placeMultipleValuesReturn — Python
Functions can return multiple valuesNoReturnValue — JavaScript
Functions without return statements return no value at allReturnCall — Java
Return statements need () around the return valueReturnCall — Python
Return statements need () around the return valueReturnUnwindsMultipleFrames — Java
A return statement can unwind multiple call stack framesReturnUnwindsMultipleFrames — Python
A return statement can unwind multiple call stack framesSetTimeoutReturnsCallbackResult — JavaScript
SetTimeout returns the value returned by the callback functionUseOfSelfTypeImpliesRecursiveType — Java
If a class has a method that has a local variable, parameter, or return value with the class as its type, the class is a recursive typeVoidMethodReturnsValue — Java
A method with void return type can return a value