Tech Tutorial: Learn to Program with JavaScript – Episode 29: Function Hoisting

Every programming language has its little quirks and JavaScript is no exception. Being an interpreted scripting language, JavaScript is not compiled and is executed directly in the browser. The execution environment does some quick interpreting of the file containing the code and as it does this it tries to fix common developer issues caused by laziness or lack of true understanding of how the language actually works.

One of those corrections is function hoisting. This is where all functions, no matter where they are defined within the code file, are moved by the interpreter to the top of their scope so that they exist in memory before they are called.

In this video, we dive into function hoisting in JavaScript and how it works to our benefit.


Personal Recommendation (unpaid)
Programming and software development are awesome! Being that you are learning along with me, there is an excellent chance you can make this a career. Based on my own life experience, let me suggest to you that you go get a Computer Science degree from Neumont College of Computer Science and kick your life into hyper-drive.

visit: https://www.neumont.edu/