[–] teamnyble 13y ago ↗ 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! [–] spoiler 13y ago ↗ Chrome also supports it if you enable Harmony [–] teamnyble 13y ago ↗ Really? I have harmony enabled in chrome://flags, but no arrow function syntax? [–] spoiler 13y ago ↗ 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!
[–] spoiler 13y ago ↗ Chrome also supports it if you enable Harmony [–] teamnyble 13y ago ↗ Really? I have harmony enabled in chrome://flags, but no arrow function syntax? [–] spoiler 13y ago ↗ 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!
[–] teamnyble 13y ago ↗ Really? I have harmony enabled in chrome://flags, but no arrow function syntax? [–] spoiler 13y ago ↗ 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!
[–] spoiler 13y ago ↗ 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!
[–] redcircle 13y ago ↗ Does anyone call it ES? [–] jallardice 13y ago ↗ What do you mean? ES6 is called ES6... what else can you call it, aside from Harmony? [–] unwind 13y ago ↗ Some call it JavaScript. [–] opendomain 13y ago ↗ Javascript 2.0 [–] camus 13y ago ↗ 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.
[–] jallardice 13y ago ↗ What do you mean? ES6 is called ES6... what else can you call it, aside from Harmony? [–] unwind 13y ago ↗ Some call it JavaScript. [–] opendomain 13y ago ↗ Javascript 2.0
[–] camus 13y ago ↗ 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.
[–] j_m_b 13y ago ↗ I didn't know js had a let statement. [–] timblair 13y ago ↗ Have a look at the previous instalment of the series: http://globaldev.co.uk/2013/09/es6-part-2/#let_declarations
[–] timblair 13y ago ↗ Have a look at the previous instalment of the series: http://globaldev.co.uk/2013/09/es6-part-2/#let_declarations
[–] Jasper_ 13y ago ↗ It even works for argument lists too: function foo(a, { b: b, c: c }, [d, e]) { print (a, b, c, d, e); }
12 comments
[ 3.1 ms ] story [ 42.5 ms ] thread