javascript version ES5 vs ES6
자바스크립트 버전별 정리 참조 : w3school
Ver | Official Name |
---|---|
ES1 | ECMAScript 1 (1997) |
ES2 | ECMAScript 2 (1998) |
ES3 | ECMAScript 3 (1999) |
ES4 | ECMAScript 4 |
ES5 | ECMAScript 5 (2009) |
ES6 | ECMAScript 2015 |
ECMAScript 2016 | |
ECMAScript 2017 | |
ECMAScript 2018 |
ES5 Features
- use strict
- String[number] access
- Multiline strings
- 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()
- Date.toISOString()
- Date.toJSON()
- Property getters and setters
- Reserved words as property names
- Object methods
- Object defineProperty()
- Function.bind()
- Trailing commas
ES6 Features(2015)
- The let keyword
- The const keyword
- Arrow Functions
- For/of
- Map Objects
- Set Objects
- Classes
- Promises
- Symbol
- Default Parameters
- Function Rest Parameter
- String.includes()
- String.startsWith()
- String.endsWith()
- Array.from()
- Array.keys()
- Array.find()
- Array.findIndex()
- New Math Methods
- New Number Properties
- New Number Methods
- New Global Methods
- Iterables Object.entries
- JavaScript Modules
ES6 Features(2016)
- JavaScript Exponentiation (**)
- JavaScript Exponentiation assignment (**=)
- JavaScript Array.prototype.includes
ES6 Features(2017)
- JavaScript String padding
- JavaScript Object.entries
- JavaScript Object.values
- JavaScript async functions
- JavaScript shared memory
ES6 Features(2018)
- Asynchronous Iteration
- Promise Finally
- Object Rest Properties
- New RegExp Features