Overview
Enables additional javascript files to be included in your script.Syntax
include(filename);
Parameters
Parameter | Type | Mandatory | Description |
---|---|---|---|
filename | String | The name of the file to include. The file must be in the same folder as the script that is including it. |
Return value
Not applicable.
Example
Including a file
include("foo.js"); // include foo.js