Solomon Osadolo

Hoisting in JavaScript is a tricky technique, but when used correctly can be beneficial to your code. However, if misused it can turn a harmless looking declaration into a persistent issue. Hoisting is a mechanism where variables and function declarations are moved to the top of their scope before code execution. In this Scotch.io tutorial, Nairobi-based Andela developer Elizabeth Mabishi covers the following:

  • Basic overview of hoisting
  • How to hoist variables
  • Different hoisting functions
  • Order of precedence
  • Hoisting classes
  • Overall functionality

If you’ve ever wondered why you were able to call functions before you wrote them in your code, you’ve come to the right place! Check out the full tutorial here.

About the Author

Solomon Osadolo

CMC at Andela. Dilettante. Techie. Retired Superhero.

Thanks for subscribing!



Tap into a global talent pool and hire the “right” developers in days, not months.


Accelerate your career by working with high-performing engineering teams around the world.


Hire Developers

We take great pride in matching our developers with the best partners. Tell us about your team below!


Thank you for your interest

A member of our team will reach out to you soon.