53GB

Learn JavaScript Scoping In 10 Minutes



Learn JavaScript Scoping In 10 Minutes

One of the biggest mistakes JavaScript developers make is not fully understanding how scoping works. There are 4 different levels of scoping and if you don’t have a strong grasp of how they interact with each other it can be incredibly difficult to write complex JavaScript code. In this video I cover all 4 different levels of scoping in JavaScript and how you can use them to your advantage.

πŸ“š Materials/References:

ES Modules Video: https://youtu.be/cRHQNNcYf6s
ES Modules Article: https://blog.webdevsimplified.com/2021-11/es6-modules/

🌎 Find Me Here:

My Blog: https://blog.webdevsimplified.com
My Courses: https://courses.webdevsimplified.com
Patreon: https://www.patreon.com/WebDevSimplified
Twitter: https://twitter.com/DevSimplified
Discord: https://discord.gg/7StTjnR
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified

⏱️ Timestamps:

00:00 – Introduction
00:30 – What is a scope
02:12 – Global Scope
04:02 – Module Scope
05:53 – Block Scope
07:35 – Function Scope
08:55 – Using multiple variables with the same name

#Scoping #WDS #JavaScript

Exit mobile version