From the course: JavaScript: Scope

Learn how to properly scope your variables - JavaScript Tutorial

From the course: JavaScript: Scope

Start my 1-month free trial

Learn how to properly scope your variables

- [Emmanuel] Have you heard about local, global, and block scope variables, and don't know how they work or what they mean? Are you coming from another language, and are trying to understand how variable scopes are used in JavaScript? If you've answered yes to any of these questions, you've come to the right place. In this course, we'll introduce JavaScript variable scopes, and how they work, how to define them, all their related terminology, and more. Hi, I'm Manny Henri, and I've been using JavaScript for a long time. And it is my pleasure to introduce you to this often overlooked subject that is variable scope. We'll first go through an overview of what are variable scopes, the different types, and hoisting. Then, we'll explore in depth what are global variables, and put it in practice. Next, we'll do the same for local, and finally, for block scope variables. So if you're ready to deepen your knowledge of JavaScript by exploring variable scopes, open up your favorite editor, and let's get started.

Contents