/Hoisting

Primary LanguageJavaScript

Hoisting

Practice reading JavaScript the same way as the interpreter reads it. After you've made your prediction, run the original code to find out if you were right! If your predictions were incorrect, look back at how the code is hoisted by the interpreter. After you've made your prediction, run the original code to find out if you were right! If your predictions were incorrect, look back at how the code is hoisted by the interpreter.

Note

Run the same code as above with ES6 syntax and compare your results: