DEV Community

loading...

A Quick Refresher on Scopes in JavaScript - Function Scope, Global Scope and Block Scope

The Nerdy Dev
Building products is my profession, Creating content is my passion. We believe that Education should be freely accessible to everyone and no one should be deprived of it.
・1 min read

In this video, we will do a basic refresher on Scopes in JavaScript before we proceed further with more advanced topics in JavaScript. We will first talk about the Global Scope in JavaScript along with Function Scopes where we use the var keyword. Then we will move further and talk about the block scope in JavaScript that uses the modern ES6 introduced let and const keywords. The code for the video can be found on GitHub. #javascript


Follow me on:
πŸ‘‰ Twitter: https://twitter.com/The_Nerdy_Dev
πŸ‘‰ Instagram: https://instagram.com/thenerdydev

Discussion (0)