JavaScript · Collections, storage and utilities
Hoisting
Function declarations are hoisted with their body; let and const are hoisted but uninitialised until the declaration runs.
Syntax
declarations move to the topExample
Try it
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.