Arrow Functions in JavaScript: A Simpler Way to Write Functions
The first time I saw this in someone’s code:
() => {}
I honestly thought it was a typo.
Like… where’s the function keyword?
Is this even valid JavaScript?
Turns out — yes.
These are called arrow fu
devwithsahil.hashnode.dev6 min read