Javascript - Arrow vs Regular Functions
Code Life
By Pierre Marsaa
Three Ways, One Function
You now know three ways to create the same function. Here they are side by side:
↗️
Loading editor...
↶
↷
All three are called the same way and give the same result. The differences are about when you can call them and how they behave inside objects.
Verify