In JavaScript, hoisting allows you to use functions and variables before they’re declared. In this post, we’ll learn what hoisting is and how it works. What is hoisting?Take a look at the code below and guess what happens when it runs: console.log(foo); var foo = ‘foo’; It might
