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/

Published by

Tim Clark

Experienced Business Owner, Chief Information Officer, Vice President, Chief Software Architect, Application Architect, Project Manager, Software Developer, Senior Web Developer, Graphic Designer & 3D Modeler, University Instructor, University Program Chair, Academic Director. Specialties: Ruby, Ruby on Rails, JavaScript, JQuery, AJAX, Node.js, React.js, Angular.js, MySQL, PostgreSQL, MongoDB, SQL Server, Responsive Design, HTML5, XHTML, CSS3, C#, ASP.net, Project Management, System Design/Architecture, Web Design, Web Development, Adobe CS6 (Photoshop, Illustrator)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s