#39 Understanding JavaScript Scope | JavaScript Full Tutorial
ฝัง
- เผยแพร่เมื่อ 8 ก.ค. 2024
- In this lesson we learn all about JavaScript Scope, understanding scope is a really important part of learning JavaScript, in this lesson we'll do a deep dive and cover global scope, local scope, functional scope and block scope, we'll also see how these all relate to the differences between var, let and const.
0:00 - Intro
0:42 - What is Scope?
1:21 - Global Scope
2:35 - Local Scope
7:27 - Functional Scope
9:20 - Block Scope
11:29 - Lesson Summary
12:19 - Lesson Tasks
15:30 - Outro and Up Next
SUBSCRIBE and hit the BELL NOTIFICATION 🔔: goo.gl/nYLZvz
------------------
👍 HTML FULL TUTORIAL: shorturl.at/fiCMV
👍 CSS FULL TUTORIAL: shorturl.at/clGSZ
------------------
FACEBOOK: / devdreamercode
TWITTER: / devdreamercode
SUBSCRIBE and hit the BELL NOTIFICATION 🔔: goo.gl/nYLZvz
------------------
Learn with Dev Dreamer! Step by step, easy to understand tutorials :-)
Well explained, you'all remember to subscribe, you won't regret it!
Thank you so much @Dev Dreamer. I am lucky to have discovered your channel. So basically, I use a paid course to learn JavaScript so that I can study using the correct road map, but I use your channel to understand each concept like it's been explained to me one on one in a classroom. ❤❤
Fantastic. You just killed all my doubts about why we should be using LET instead of VAR.
Amazing! Thanks for watching 🙂👍
Underrated channel. Great job
thanks bro u cleared all my doubts
Excellent explanation 👍🏻👍🏻🔥
lesson 38+39 earned you a sub! ;)
Consistent. Informative. Knowledgeable.
amazing video thank you
thanks man .I understood it .
cool! thanks for the update.
This a a great tutorial!👍👍👍
man you're great
You got a new subscriber today
would appreciate if u can make more videos on advanced JavaScript and React framework
Are you planning to do javascript interview exercises too, at the end of this course?
// WHAT IS WRONG WITH THIS AND WHY????
const numbers1 = [45, 4, 9, 16, 25];
const numbers2 = numbers1.map(myFunction);
document.getElementById("demo").innerHTML = numbers2;
let double = 2;
function myFunction(value, index, array) {
value *= double;
return value
}