Disable Warnings with Control Comment
To ignore all warnings in a file, simply place /*jsl:ignoreall*/ at the top of the file.
A variable that is not explicitly declared has a global scope. For example, if a function uses a counter variable and calls another function that uses a counter variable by the same name, unless these functions use the var keyword to declare the variable, the two functions will be accessing and modifying the same variable. This almost never produces the expected behavior.
Here's what it takes to set up this feature:
The warnings for undeclared identifiers will appear after other warnings that may occur in the script. This is by design, since the entire script must be examined before identifiers can be called undefined.
Switches and Breaks
Advanced Output Format
The following output formats may also be used:
If the output format is prefixed with "encode:", all backslashes, single and double quotes, tabs, carriage returns, and line breaks will be escaped as \\, \' and \", \t, \r, and \n (respectively).