Microsoft® JScript
function Statement
See Also
Language Reference 


Description
Declares a new function.
Syntax

function functionname( [argument1 [, argument2 [, ...argumentn ]]])
{
   statements
}

The function statement syntax has the following parts:

Part Description
functionname The name of the function.
argument1...argumentn An optional, comma-separated list of arguments the function understands.
statements One or more JScript statements.
Remarks

Use the function statement to declare a function for later use. The code contained in statements is not executed until the function is called from elsewhere in the script.


© 1996 by Microsoft Corporation.


Casa de Bender