Function Declarations

function
The function keyword defines a set of commands that can be used as a callable function with parameters.

Syntax:
function ( [parameters] )
{
[statements]
}

Example 1:
function Multiply( x, y )
{
return x * y;
}

return
The return statement passes a value to the calling statement.

Syntax:
return [expression];

Example 1:
function Multiply( x, y )
{
return x * y;
}

var z = Multiply( 8, 9 );