ES6
Class
class Point {
constructor(x, y) {
this.x = x;
this.y = y;
}
toString() {
return '(' + this.x + ', ' + this.y + ')';
}
}Style Guide
How to run ES6 in Node
Iteration
Module
ES5
ES6
Block / Scope
Spread/Rest
Last updated