Export (0) Print
Expand All
Expand Minimize

JS1135: Variable has not been declared

An expression includes a variable that has not been defined with a var statement or that has a misspelled name, and the code is compiled in fast mode. Programs compiled in fast mode must have all variables explicitly declared.

Fast mode can be turned off for programs compiled with the command-line compiler.

To correct this error

  1. Make sure to define all variables.

  2. Make sure all identifiers are spelled correctly.

  3. Compile the program with the /fast- option to turn fast mode off. (For command-line compilation only.)

Community Additions

© 2014 Microsoft