DEV Community


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

thenerdydev profile image The Nerdy Dev ・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:
👉 Instagram:

Discussion (0)

Editor guide