Home >Web Front-end >Front-end Q&A >What standards is javascript based on?
javascript is based on the ECMAScript standard. ECMAScript is a standard scripting language specification that specifies the syntax, types, statements, keywords, reserved words, operators, objects and other parts of the JavaScript language; it is the core of JavaScript.
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
JavaScript was originally called LiveScript and was developed in 1995 by Brendan Eich of Netscape Communications Corporation. Netscape renamed it JavaScript after it partnered with Sun (an Internet company known as "Sun Microsystems" that is now owned by Oracle).
The reason why LiveScript was renamed to JavaScript is because JavaScript was designed inspired by Java, so they have many similarities in syntax. Many naming conventions in JavaScript are also borrowed from Java, and also One reason is for marketing and to ride on the popularity of Java.
During the same period, Microsoft and Nombas (a company called Nombas) also developed two scripting languages, JScript and ScriptEase respectively, forming a tripartite confrontation with JavaScript. There is no unified standard between them and they cannot be used interchangeably. In order to solve this problem, in 1997, under the coordination of ECMA (European Computer Manufacturers Association), Netscape, Sun, Microsoft, and Borland (a software company) formed a working group and developed the ECMA-262 standard based on JavaScript. (ECMAScript).
Complete JavaScript is composed of the following three parts:
Core (ECMAScript): Provides the syntax and basic objects of the language;
Document Object Model (DOM): Provides methods and interfaces for processing web content;
Browser Object Model (BOM): Provides and interfaces with browsers Methods and interfaces for interaction.
Among them, ECMAScript is the core of JavaScript, describing the basic syntax of the language (var, for, if, array, etc.) and data types (numbers, strings, etc.) , boolean, function, object (obj, [], {}), null, undefined), ECMAScript is a set of standards that defines what a language (such as JS) looks like.
ECMAScript is defined by ECMA-262. ECMAScript is an internationally recognized standard scripting language specification that has no dependency on Web browsers. The ECMA-262 standard mainly stipulates that the language consists of the following components:
Syntax
Variables and data types
Keywords and reserved words
Operators
Control statements
Object
ECMAScript version introduction:
ECMAScript 5 (ES5): The fifth revision of ECMAScript, standardized in 2009. This specification is fairly fully implemented in all modern browsers.
ECMAScript 6 (ES6) / ECMAScript 2015 (ES2015): The sixth revision of ECMAScript, standardized in 2015. This standard is partially implemented in most modern browsers. You can check this compatibility table to see how different browsers and tools implement it.
ECMAScript 2016: The anticipated seventh revision of ECMAScript, scheduled for release next summer. The specific features that this specification will include have not yet been finalized
ECMAScript Proposals: Features and syntax proposals that are considered for inclusion in future versions of the ECMAScript standard need to go through five stages: Strawman (Scarecrow), Proposal (Proposal) , Draft, Candidate and Finished.
[Related recommendations: javascript learning tutorial]
The above is the detailed content of What standards is javascript based on?. For more information, please follow other related articles on the PHP Chinese website!