12 comments

[ 4.9 ms ] story [ 25.7 ms ] thread
Combine this with arrow function syntax (which is already in Firefox):

    let square = x => x * x
 
And the next version of JavaScript is looking much more fun to work with!
Chrome also supports it if you enable Harmony
Really? I have harmony enabled in chrome://flags, but no arrow function syntax?
Hmm, I am using the Dev channel Chrome. So, it might be not in the stable (or even beta) release? It definitely worked for me when I tried it, though!
Does anyone call it ES?
What do you mean? ES6 is called ES6... what else can you call it, aside from Harmony?
Some call it JavaScript.
Ecma Script is the official name, Javascript belongs to Oracle,but since they are not enforcing the trademark , I doubt anybody could get sued over this.
It even works for argument lists too:

  function foo(a, { b: b, c: c }, [d, e]) {
     print (a, b, c, d, e);
  }