DEV Community

Discussion on: Understanding Hoisting in JavaScript

weswedding profile image
Weston Wedding

This is good stuff! Hoisting is definitely one of those language aspects that needs explanation.

I didn't have any hint that it was a thing besides seemingly inconsistent errors, but learned the details because of Douglas Crockford's opinionated JSLint tool telling me I needed to put my var declarations at the start of my functions.

imwiss profile image
Wissam A Author

Thanks Weston!

I agree that it's a very important part to understand, otherwise we won't understand why our code behaves certain ways on runtime. Douglas Crockford is definitely one of the best JS experts out there, along with Kyle Simpson in my opinion. I learned so much from the both of them.