Home >Web Front-end >Front-end Q&A >what describes the basic syntax of javascript
ECMAScript describes the basic syntax of javascript. ECMAScript is a standard scripting language specification and the core of JavaScript. It defines the syntax specification of JavaScript and describes the basic syntax and data types of the language.
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
ECMAScript describes the basic syntax of javascript.
ECMAScript ("ES" for short) is a universal scripting language implemented according to the ECMA-262 standard. The ECMA-262 standard mainly stipulates the syntax, types, statements, keywords, and reserved words of this language. , operators, objects and other parts. The latest version of ECMAScript is ECMAScript6 (referred to as "ES6").
As for JavaScript, sometimes people regard JavaScript and ECMAScript as the same. In fact, this is not the case. JavaScript contains much more content than what is specified in ECMA-262. Complete JavaScript is composed of the following three It consists of three parts:
Core (ECMAScript): defines the syntax specification of JavaScript and describes the basic syntax and data types of the language;
Document Object Model (DOM): Provides methods and interfaces for processing web page content;
Browser Object Model (BOM): Provides methods and interfaces for interacting with browsers.
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, Boolean, functions, objects (obj, [], {}), null, undefined), ECMAScript is a set of standards that defines what a language (such as JS) looks like.
[Recommended learning: javascript advanced tutorial]
The above is the detailed content of what describes the basic syntax of javascript. For more information, please follow other related articles on the PHP Chinese website!