DEV Community

Discussion on: Javascript Hoisting

Collapse
 
copleykj profile image
Kelly Copley

This is because all declarations are hoisted. Function declarations are no different than variable declarations, memory must be reserved for them as well.