https://github.com/colinbut/es6-code
ES6 - EcmaScript 6 - Code
https://github.com/colinbut/es6-code
ecmascript es2015 es6 es6-javascript
Last synced: 10 months ago
JSON representation
ES6 - EcmaScript 6 - Code
- Host: GitHub
- URL: https://github.com/colinbut/es6-code
- Owner: colinbut
- Created: 2017-10-27T21:07:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-27T21:09:47.000Z (about 8 years ago)
- Last Synced: 2025-02-01T14:46:15.696Z (12 months ago)
- Topics: ecmascript, es2015, es6, es6-javascript
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ES6
ES6 is ECMAScript 6 (ECMAScript 2015)
ECMAScript is a scripting language which forms the language base for JavaScript, JScript, and ActionScript
ES6 is not widely supported in modern browsers to need to use a transpiler (like babel) to turn it into
browser compatible.
ES6 has lots of new features:
- let and const keyword
- function returning multiple values
- default values for function arguments
- ... (spread) operator
- multiple line strings (a Python like feature)
- class keyword to define classes
- arrow => function
- promises (equivalent to Java futures)
- 'for of' loop
- yield keyword
- 0o and 0b literal to define octal
- Set/WeakSet, Map/WeakMap objects
- template literals
ES6 is mostly syntactic sugars! Lots of sugarcoating!