Learn JavaScript: Scope – The Basics You Need to Know #javascript #javascript_tutorial



Learn JavaScript: Scope – The Basics You Need to Know #javascript #javascript_tutorial

Learn JavaScript: Scope - The Basics You Need to Know #javascript #javascript_tutorial

In this video, I’m going to teach you the basics of Javascript’s scope. This is the first of a series of video tutorials on Javascript, so make sure to Subscribe so you don’t miss anything!

In this video, I’ll be taking a look at Javascript’s scope, and what it means for you as a developer. I’ll be covering topics like local and global variables, function scopes, and the “this” keyword. By the end of this video, you should have a good understanding of what scope is and how it affects your code.

The scope is the current context of execution in which values and expressions are “visible” or can be referenced. If a variable or expression is not in the current scope, it will not be available for use. Scopes can also be layered in a hierarchy, so that child scopes have access to parent scopes, but not vice versa.

Link: https://developer.mozilla.org/en-US/docs/Glossary/Scope

Comments are closed.