JSCRIPT reserved word

Source: Internet
Author: User
Tags reserved
js|jscript| reserved word

Jscript has some reserved words that cannot be used in identifiers. Reserved words have special meanings for Jscript languages, and they are part of the language syntax. Using reserved words will produce a compilation error when loading the script.

Jscript also has some reserved words for future use. These words are not part of the current Jscript language, but they are reserved for future use.

Reserved words

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

Words reserved for the future

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

Avoid using words that have already been used in an internal Jscript object or function, such as String or parseint, when you select an identifier.



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.