JavaScript/Reserved words/return

The return keyword
The return keyword ends the function, specifying the value to be returned. Without this expression, undefined is returned.

Please note that adding a carriage return inbetween the statement and the value results in splitting it into two separate statements, returning with undefined. This is because of the automatic semicolon insertion (ASI).

Examples
The getter getValue returns with value. The getter getName returns with undefined.
 * Example 1
 * Example 2