Y
Hacker News
new
|
ask
|
show
|
jobs
by
teamnyble
4642 days 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!
1 comments
spoiler
4642 days ago
Chrome also supports it if you enable Harmony
link
teamnyble
4642 days ago
Really? I have harmony enabled in chrome://flags, but no arrow function syntax?
link
spoiler
4642 days 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!
link