Please enable JavaScript.
Coggle requires JavaScript to display documents.
Modern JS (names (ES6 (officially, “ES2015”), ES7 (aka ES2016), ECMA…
Modern JS
names
ECMA Script
ES6
officially, “ES2015”
ES7
aka ES2016
TC-39 – the JavaScript working group
V8 JavaScript engine
ES6+ (ES7)
asynch/await
async function createEmployee()
return new Promise((resolve, reject) => {...})
await createEmployee()
#
Object Rest / Spread Properties
var {a, b, c} = {a: 1, b: 2, c: 3};
var {a, b, c, ...x} = {a: 1, b: 2, c: 3, x: 4, y: 5, z: 6};
last one in wins
var obj = {a, b, c, ...x};
Observable/Observer
Observable
return a cleaning up function
return () => {...}
var resize = new Observable((o) => {...}
Observer
var observer = { next: (value) => {... }};
resize.observe(observer);
URLs
https://derickbailey.com/2017/06/06/3-features-of-es7-and-beyond-that-you-should-be-using-now/
ES6
generators