JavaScript reserved Keywords

Source: Internet
Author: User

1. Generic reserved Keywords

Break Delete function Return typeof
Case Do If Switch Var
Catch Else Inch This void
Continue False instanceof Throw While
Debugger Finally New True With
Default For Null Try

2.ECMAScript 5 Increase Retention

Class Const Enum Export Extends
Import Super

            

3. Normal under legal, but strict mode is reserved

Implements Let Private Public Yield
Interface Package Protected Static

                

4. Strict mode is strictly restricted, not exactly reserved words, but not as variable names, function names or parameter names

Arguments Eval

  

5.ECMASCRIPT3 keywords

Abstract Double Goto Native Static
Boolean Enum Implements Package Super
Byte Export Import Private Synchronized
Char Extends Int Protected Throws
Class Final Interface Public Transient
Const Float Long Short Volatile

                                                          

6.Javascript pre-defined a number of global variables and functions, you should avoid their names as variable names and function names:

Arguments encodeURI Infinity Number Regexp
Array encodeURIComponent Isfinite Object String
Boolean Error IsNaN Parsefloat SyntaxError
Date Eval Json parseint TypeError
decodeURI Evalerror Math Rangeerror Undefined
decodeURIComponent Function NaN Referenceerror Urierror

                                                          

JavaScript reserved Keywords

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.