DEV Community

Discussion on: 3 Basic JavaScript Concepts That Are Important.

anirudh711 profile image
Anirudh Madhavan

Hoisting can be done only on variables defined using 'var' and function definitions excluding function expressions. In the above two cases , variables are partially hoisted (undefined) and functions are fully hoisted.

sigmapie8 profile image
Manav Author

Ah. Thanks for that new information!