Leave a Reply

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

Notify of
avatar

Paul Brown
Guest
Paul Brown
29 days 8 hours ago

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

Salva Carsi Moreno
Guest
Salva Carsi Moreno
1 month 17 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?

xXxBladeStormxXx
Guest
xXxBladeStormxXx
2 months 2 days ago

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

Oral Okan
Guest
Oral Okan
2 months 8 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
2 months 12 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
2 months 30 days ago

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

Nick Kamer
Guest
Nick Kamer
3 months 9 days ago

Your netflix chatter genuinely made me laugh tips hat

Tommy Ip
Guest
Tommy Ip
4 months 20 days ago

It looks cleaner before…

brave heart
Guest
brave heart
5 months 10 days ago

Nice tut!

Alan Jones
Guest
Alan Jones
5 months 21 days ago

Awesome, such an easy way to explain things with examples that make u actually think what the heck all this is. Seen alot of your tutorials, thanks!

1 2 3
wpDiscuz