Is array a reserved word in javascript?
View Discussion Show
Improve Article Save Article View Discussion Improve Article Save Article
Reserved Words:
Reserved Words added in ECMAScript 5 and 6.
Removed Reserved Words Following reserved words has been removed from ECMAScript 5 and 6.
In JavaScript, some identifiers are reserved words and cannot be used as variables or function names. JavaScript StandardsECMAScript 3 (ES3) was released in December 1999. ECMAScript 4 (ES4) was abandoned. ECMAScript 5 (ES5) was released in December 2009. ECMAScript 6 (ES6) was released in June 2015, and is the latest official version of JavaScript. Time passes, and we are now beginning to see complete support for ES5/ES6 in all modern browsers. JavaScript Reserved WordsIn JavaScript you cannot use these reserved words as variables, labels, or function names:
Words marked with* are new in ECMAScript5 JavaScript Objects, Properties, and MethodsYou should also avoid using the name of JavaScript built-in objects, properties, and methods:
Java Reserved WordsJavaScript is often used together with Java. You should avoid using some Java objects and properties as JavaScript identifiers:
Windows Reserved WordsJavaScript can be used outside HTML. It can be used as the programming language in many other applications. In HTML you must (for portability you should) avoid using the name of HTML and Windows objects and properties:
HTML Event HandlersIn addition you should avoid using the name of all HTML event handlers. Examples:
Which are JavaScript reserved words?JavaScript Reserved Words. Which is not a reserved word in JavaScript?The NaN , Infinity , and undefined are not reserved keywords in JavaScript But you must avoid using them. They are properties of the global object and have special meanings. Although they are immutable & read-only properties, JavaScript does not throw any errors if you declare them in the global scope.
Is enum a reserved word in JavaScript?enum is reserved in both strict and sloppy mode. while the following keywords are reserved in strict mode.
Is state a reserved word in JavaScript?No state is not a reserved word.
|