Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
An introduction to ES6 Part 3: Destructuring
(opens in new tab)
(globaldev.co.uk)
24 points
timblair
12y ago
12 comments
Save
Share
12 comments
11 comments · 4 top-level
top
newest
oldest
redcircle
12y ago
· 4 in thread
Does anyone call it ES?
jallardice
12y ago
What do you mean? ES6 is called ES6... what else can you call it, aside from Harmony?
unwind
12y ago
Some call it JavaScript.
opendomain
12y ago
Javascript 2.0
camus
12y 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.
teamnyble
12y ago
· 2 in 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!
spoiler
12y ago
Chrome also supports it if you enable Harmony
teamnyble
12y ago
Really? I have harmony enabled in chrome://flags, but no arrow function syntax?
1 more reply
j_m_b
12y ago
· 1 in thread
I didn't know js had a let statement.
timblair
OP
12y ago
Have a look at the previous instalment of the series:
http://globaldev.co.uk/2013/09/es6-part-2/#let_declarations
Jasper_
12y ago
It even works for argument lists too:
function foo(a, { b: b, c: c }, [d, e]) { print (a, b, c, d, e); }
j
/
k
navigate · click thread line to collapse