Glossary term
What is first-class functions? Meaning for developers
Functions are values: they can be stored in variables, passed as arguments and returned from other functions, like any number or string.
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.