r/eli5_programming • • Nov 02 '17

ELI5: Javascript arrow function notation?

And what are the advantages of arrow notation vs standard?

10 Upvotes

5 comments sorted by

View all comments

Show parent comment

4

u/Balduracuir Nov 03 '17

With one parameter, you can avoid parenthesis too

For example : param => param + 1

Btw 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 :))