let { destructured, vars } = myObject
let foo = (num) => num * 2
class Foo extends Bar {
constructor() {
this.callFoo()
}
callFoo() {
// Note the simple syntax
}
}Also, remember: no need for semicolons, but be aware when they can hang you up! (IIFE's, etc).
Even after all the work that TC39 put into ES6/ES2015, it's still not nearly as well done or helpful as CoffeeScript is. You'll be going against all of the "cool kids" by rejecting ES6, but you'll also be much more productive and happier.
But honestly...ES6 will be the norm and you should know it anyway. So the question is..If you already know CoffeeScript should you keep using it ? The answer is YES ! If that makes you happy why not. But keep an eye on ES6 and learn it.
More delicate question would be. If i start with JS should i learn ES6 or CoffeeScript first ?
what? why? we are a team of 8 working with it and it's great.