The return keyword allows to return the value from the function.
function RiseToAPowerOf2(
x )
{
return
x ^ 2;
}
At the end of the function we can see 'return' statement that is used to return the result to the caller. Note that currently return statement must be placed at the very end of the function.
Consult function keyword help for more details.