Leave a Reply

45 Comments on "ECMAScript 6 / ES6 New Features – Tutorial 2 – Arrow Functions"

Notify of
avatar

Rizi
Guest
Rizi
14 days 5 hours ago

What means this syntax? (arg)=>(arg)=>{…}

TNTSquid
Guest
TNTSquid
3 months 10 days ago

Great thing, that is identical to Lambda expression syntax from java!

Sm WnL
Guest
Sm WnL
2 months 2 days ago

As it is in C# as well.

Raymond Cruz
Guest
Raymond Cruz
4 months 7 days ago

Arrow functions look like crap!

Edward Han
Guest
Edward Han
4 months 10 days ago

What is the stylesheet of his program? it looks so nice

Saad Tariq
Guest
Saad Tariq
5 months 27 days ago

i had the ceo on the call, dude your humor is epic in the videos, i've watched a lot of your playlist ! keep up the good work ! keep the humor rolling xD

Paul Brown
Guest
Paul Brown
8 months 22 days ago

I can't be the only one that thinks these arrow functions are bloody ugly and hard to read compared to standard functions?

Sm WnL
Guest
Sm WnL
2 months 2 days ago

They become intuitive and easy when you use them often enough.

Hoa Khoa Hoàng
Guest
Hoa Khoa Hoàng
3 months 15 days ago

me too :(((

Salva Carsi Moreno
Guest
Salva Carsi Moreno
9 months 12 days ago

Any particular reason for doing this 'let foo = r => 2*r;' instead of 'const foo = r => 2*r;'Why not using const instead of let keyword?

Ibrahim Al-Khayyat
Guest
Ibrahim Al-Khayyat
2 months 6 days ago

once you declare a 'const' you can not change it. so, in a sense he used "let" for simplicity

xXxBladeStormxXx
Guest
xXxBladeStormxXx
9 months 26 days ago

You're not explaining things very well….What about when your function takes in no argument, or when you have a callback?

Sm WnL
Guest
Sm WnL
2 months 2 days ago

you can pass in the callback in the parenthesis as well:([yourCallback])=>{ .. }

Ibrahim Al-Khayyat
Guest
Ibrahim Al-Khayyat
2 months 6 days ago

// A function with no parameters should be written with a pair of parentheses.() => { statements }

Oral Okan
Guest
Oral Okan
10 months 3 days ago
Good job on a helpful tutorial. However, I think there are a few points that could benefit from a little clarification. The truth of the matter is the way functions work in Javascript is quite confusing, owing in large part to inheriting certain aspects from other languages while also having a patchwork of additions (ES6 additions themselves as an example) that have been introduced to address a particular need, without breaking compatibility with earlier code.Your first example is of a named function expression, and it works somewhat similar to way you would define a function in C, except that there… Read more »
Max Jacobson
Guest
Max Jacobson
10 months 6 days ago

Thank goodness bucky found the crtl + c and ctrl + v @ 1:55. Watching those Java vids from 2009 was making me go crazy.

1 2 3
wpDiscuz