Inheritance diagram for Function:

Methods | |
| Object | apply (Object thisArg, Array argArray) |
| Object | call (thisArg, arg1, arg2,...) |
| String | toString () |
Constructors | |
| Function (String p1, String p2,..., String pn, String body) | |
var oMyFunction = function()
{
}
Default Constructor. Creates a new function. All arguments are optional - zero or more argument names may be specified, the last argument, if any, is always used as the body of the function.
| p1 | The name of the first parameter | |
| p2 | The name of the second parameter | |
| pn | The name of the last parameter | |
| body | The text of the executable code of the function. |
Performs a function call.
| thisArg | The object that serves as the 'this' value for the function call. If undefined, or not provided, the global object is used. | |
| argArray | An array of arguments for the function, if not provided, the function is called without any arguments. |
| Object Function::call | ( | thisArg | , | |
| arg1 | , | |||
| arg2 | , | |||
| ... | ||||
| ) |
Performs a function call.
| thisArg | The object that serves as the 'this' value for the function call. If undefined, or not provided, the global object is used. | |
| arg1 | The first argument for the function. | |
| arg2 | The second argument for the function. |
| String Function::toString | ( | ) |