Glossary term
What is function expression? Meaning for developers
A function stored in a variable: const square = function () { … }. Hoisted like a variable, not like a function — calling it early fails.
Learn it properly · JavaScript CoreLesson 3: Var, Let, and ConstAll three get hoisted. What happens after that — what value they start with, where they're actually stored in memory, and when you're allowed to touch them — is where they completely part ways.