The most common types of JavaScript errors

1. The error is:

Uncaught ReferenceError: uncaught reference error ( reference error: Using the variable is not defined )

    Before the error code will be executed after the code will not be executed

2. The error is :

Uncaught Syntaxerror: not capture syntax error ( syntax error: that wrote the code does not comply with the coding rules js )

    Information Tip; we can modify the error based on the information that follows prompts, of course, grammatical errors, the browser will direct error, the entire code will not be executed.

3. being given:

Uncaught TypeError: Error not capture type ( type error: type provided JS not required; )

    Message alert; previous error code will be executed after the code will not be executed

4. logic error: This error does not complain, and differ only in their own imagination, can be corrected by the debugger for debugging or other tools;

The error is:

Uncaught RangeError: uncaught error range ( specified range is not required JS )

    Message alert; previous error code will be executed after the code is not executed;

 

 

 

// write the code, various kinds of mistakes is not terrible, logic errors, confusion was terrible ;;

Manage its logical slowly

    

Guess you like

Origin www.cnblogs.com/xy88/p/11403833.html