return

If a function executes a return statement with no expression , or if it returns because it reaches the end
of the function body, the value of the function-call expression is undefined .
Because of JavaScript's automatic semicolon insertion, you may not include a line break between the
return keyword and the expression that follows it.

你可能感兴趣的:(JavaScript)