Glossary term
What is arrow function? Meaning for developers
The () => { … } syntax. Shorter, and it does not get its own this — it uses the this of the code around it.
Learn it properly · JavaScript CoreLesson 12: First-Class Functions, Callbacks and Event ListenersFunctions as values: passing them as arguments, returning them from other functions, sync vs async callbacks stepped side by side, and attaching and removing event listeners without leaking memory.