JavaScript reserved keyword (full) __java

Source: Internet
Author: User
Tags reserved
javascript reserved keyword (full) JavaScript Standard

All modern browsers have fully supported ES5 (ECMAScript 5). JavaScript reserved Keywords (keyword)

A reserved keyword (identifier) for Javascript cannot be used as a variable, label, or function name. Some reserved keywords are used as Javascript for later expansion.

Abstract Arguments Boolean Break Byte
Case Catch Char class* Const
Continue Debugger Default Delete Todo
Double Else enum* Eval export*
extends* False Final Finally Float
For function Goto If Implements
import* In instanceof Int Interface
Let Long Native New Null
Package Private Protected Public Return
Short Static super* Switch Synchronized
This Throw Throws Transient True
Try typeof Var void Volatile
While With Yield

* The keyword for the tag is newly added in ECMAScript5. JavaScript objects, properties, and methods

You should also avoid using JavaScript-built names of objects, properties, and methods as a variable or function name for javascript:

Array Date Eval function hasOwnProperty
Infinity Isfinite isNaN isPrototypeOf Length
Math NaN Name Number Object
Prototype String Tostring Undefined valueof
  Java reserved Keywords

JavaScript is often used in conjunction with Java. You should avoid using some Java objects and properties as JavaScript identifiers:

GetClass Java Javaarray Javaclass Javaobject Javapackage
  Windows reserved Keywords (reserved word)

JavaScript can be used outside of HTML. It can be used as a programming language in many other applications.

In HTML, you must (you should also do this for portability) avoid using the names of HTML and Windows objects and properties as Javascript variables and function names:

Alert All Anchor Anchors Area
Assign Blur button CheckBox Clearinterval
Cleartimeout Clientinformation Close Closed Confirm
Constructor Crypto decodeURI decodeURIComponent Defaultstatus
Document Element Elements Embed Embeds
encodeURI encodeURIComponent Escape Event FileUpload
Focus Form Forms Frame Innerheight
Innerwidth Layer Layers Link Location
Mimetypes Navigate Navigator Frames Framerate
Hidden History Image Images Offscreenbuffering
Open Opener Option Outerheight Outerwidth
Packages Pagexoffset pageYOffset Parent
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.