r/eli5_programming • u/j_gets • Nov 02 '17
ELI5: Javascript arrow function notation?
And what are the advantages of arrow notation vs standard?
10
Upvotes
r/eli5_programming • u/j_gets • Nov 02 '17
And what are the advantages of arrow notation vs standard?
View all comments
Show parent comment
4
u/Balduracuir Nov 03 '17
With one parameter, you can avoid parenthesis too
For example :
param => param + 1Btw that guy explain things amazingly well : https://youtu.be/6sQDTgOqh-I (Discovered that channel on this subreddit, thanks a lot to the one who shared it :))