Glossary: JavaScript Beyond the Basics
Hoisting
Also written: hoisted
Function declarations (`function name() {}`) are moved to the top of their scope before the code runs, so you can call them above the line where they're written.
Glossary: JavaScript Beyond the Basics
Also written: hoisted
Function declarations (`function name() {}`) are moved to the top of their scope before the code runs, so you can call them above the line where they're written.