FunctionDeclaration ::= | function FUNCTION_NAME FormalParameters Block |
Used by: |
A function is a named collection of statements with parameters, and can be invoked by code repeatedly. A function defined inside a class is called a method.
Functions can return values via the return statement. If not, by default they return a null .
See FormalParametes for how parameters are handled.