return
statement has the following syntax:
return expr;
Evaluates the passed expression and sets the current native function's return value. It also exits the current function. If used outside the function body, an exception is generated.
function square(x)
{
return x * x;
}