node-es6-examples
node-es6-examples copied to clipboard
ECMAScript 6 examples for Node.JS
First of all, thanks for the great samples! Just wondering, could you please add one to show how to create a Class (with a constructor accepting parameters) and how to...
Complete object observation block
When demonstrating generators: ``` javascript function* fibonacci() { let a = 0, b = 1; while(true) { yield a; // this syntax doesnt appear to be actually supported [a, b]...
Would the [arrow function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions) be a viable candidate for an example or am I missing something?
If `Symbol()` with empty value, browser will alert SyntaxError `let debugSymbol = Symbol()` `SyntaxError: Illegal let declaration outside extended mode`
Proxies are to be created with `new Proxy(target, handler)`, now.
Examples for exports and module.exports