[Prev: const] [Home] [Next: var]
function functionName( arguments ) { Statements; }
This keyword is used to define a function.
Functions may also be declared within the scope of a class definition. In this situation, the functions become member functions (methods) of the class that contains them. See class.
[Prev: const] [Home] [Next: var]