Home >Web Front-end >Front-end Q&A >Is ecmascript5 es6?
ecmascript5 is not es6, ecmascript5 is the fifth version of ECMAScript, referred to as ES5 and ECMAScript 2009, and the full name of es6 is ECMAScript 6, which is the next version standard of JavaScript.
The operating environment of this article: windows7 system, ECMAScript version 6, DELL G3 computer
Is ecmascript5 es6?
ecmascript5 is not es6.
The following will introduce ES5 and ES6 to you respectively.
Introduction to ECMAScript 5:
ECMAScript 5 is also known as ES5 and ECMAScript 2009. It is the fifth version of ECMAScript.
ECMAScript 5 Features
These are new features released in 2009:
"use strict" directive
String.trim()
Array.isArray()
Array.forEach()
Array.map()
Array.filter()
Array.reduce()
Array.reduceRight()
Array.every()
Array.some()
Array.indexOf()
Array.lastIndexOf()
JSON.parse( )
JSON.stringify()
Date.now()
Property Getter and Setter
New object properties and methods
ECMAScript 6 Introduction:
ES6, full name ECMAScript 6.0 is the next version standard of JavaScript, released in 2015.06.
ES6 is mainly to solve the inherent shortcomings of ES5. For example, there is no concept of class in JavaScript, but the current browser JavaScript is the ES5 version. Most higher version browsers also support ES6, but only ES6 is implemented. Some features and functions.
Recommended study: "javascript basic tutorial"
The above is the detailed content of Is ecmascript5 es6?. For more information, please follow other related articles on the PHP Chinese website!