Leave a Reply

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

Notify of
avatar

TNTSquid
Guest
TNTSquid
1 month 12 days ago

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

Sm WnL
Guest
Sm WnL
5 days 16 hours ago

As it is in C# as well.

Raymond Cruz
Guest
Raymond Cruz
2 months 10 days ago

Arrow functions look like crap!

Edward Han
Guest
Edward Han
2 months 12 days ago

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

Saad Tariq
Guest
Saad Tariq
4 months 18 hours 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
6 months 26 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
5 days 16 hours ago

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

Hoa Khoa Hoàng
Guest
Hoa Khoa Hoàng
1 month 18 days ago

me too :(((

Salva Carsi Moreno
Guest
Salva Carsi Moreno
7 months 14 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
9 days 17 hours ago

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

xXxBladeStormxXx
Guest
xXxBladeStormxXx
7 months 30 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
5 days 16 hours ago

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

Ibrahim Al-Khayyat
Guest
Ibrahim Al-Khayyat
9 days 17 hours ago

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

Oral Okan
Guest
Oral Okan
8 months 5 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
8 months 9 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.

ex2tt7yaa2vy9dyhvw5u
Guest
ex2tt7yaa2vy9dyhvw5u
8 months 28 days ago

How is it cleaner or faster? It literally takes the same amount of characters. You're so missing the point

Sm WnL
Guest
Sm WnL
5 days 16 hours ago

()=> vs function()That's 4 characters vs 10 characters.If you factor in auto-complete for ( ),that's 3 vs 9.To me that's a lot when typing out code.The less time spent on typing out code, the more time you can have to think about it.

1 2 3
wpDiscuz