JavaScript provides a return statement to return a value. | |
The value to be returned is placed after the keyword return. | |
The 'undefined' value is returned from a function if no value is specified after the keyword return or if the return statement is not used. | |
A value returned from a function can be assigned to a variable or used within an expression. | |
|