Lexical and Block Scope Explained in Depth | The Complete JavaScript Course | Ep.34

preview_player
Показать описание


📖 Chapters
00:00 Global and local scope differences in JavaScript
02:42 Understanding lexical and block scope in JavaScript
05:40 Understanding closure in JavaScript
09:04 Lexical scope in JavaScript explained
12:08 Understanding lexical and block scope in JavaScript.
15:39 Exploring lexical and block scopes in JavaScript functions
19:50 Understanding Lexical and Block Scope in JavaScript
24:05 Understanding block scope and lexical scope in JavaScript functions.
27:26 Explaining lexical scope and block scope in JavaScript
29:57 Understanding lexical and block scope in JavaScript

Have any doubts? Join this Telegram group and ask your question. You can also share the projects that you make in this group.

Social Media

Music by geoffharvey from Pixabay
Рекомендации по теме
Комментарии
Автор

and thank you so much aapka ye course bohot sahi bhi bohot saare channel dekhe h lekin proper koi perticular channel pr sb nhi milta jese aapke channel pr h

bipalavsarkar
Автор

Sir backend bhi padhao jaise nodeJS, express, mongoDB
Aapka samjhya hua dimmag m baith jata h .If possible please create backend from zero to advanced
It is high request 🙏🙏

decodedunia
Автор

Beginners friendly explanation with diagrams such a great lecture sir
Thanks for everything 😊💖😊

vinaypatil
Автор

Summary:
Lexical Scope: It is the ability for a function scope to access variables from the parent scope.
Block Scope: the variable is accessible within the block that is between the curly braces.
let and const are block scope and var is global scope but it will not be accessible outside of the function.

from what I learned from this video. correct me if I am wrong.

nobody
Автор

lexical scope : lexical scope also known as scope chaining . from lexical scope we get to know the variables or functions that is declared where they are accessable .
the inner function is having its scope and scope of ancestor . and the outer function is not having scope of its child . variable declared inside child can't be accessed by its parent 💛

bhaiya lexical scope sahi h na ye...

princepawar
Автор

sir, i am really grateful ❣. Sir mai aapka jitna video ko follow kr rha hu utna hi aur dekhne ka mn kr rha hai and bahut kuchh deep me sikhne ko mil rha hai. mai dil se chahta hu ki aapka subscriber bahut ho jaye and aap bhi popular ho jao.

AvinashKumar-lc
Автор

Thank you bhaiya(sir) aapke video se bahot kuch sikh raha hu jo mujhe maloom bhi nahi tha

sunilvishwakarma
Автор

00:02 Global and local scope differences in JavaScript
02:42 Understanding lexical and block scope in JavaScript
05:40 Understanding closure in JavaScript
09:04 Lexical scope in JavaScript explained
12:08 Understanding lexical and block scope in JavaScript.
15:39 Exploring lexical and block scopes in JavaScript functions
19:50 Understanding Lexical and Block Scope in JavaScript
24:05 Understanding block scope and lexical scope in JavaScript functions.
27:26 Explaining lexical scope and block scope in JavaScript
29:57 Understanding lexical and block scope in JavaScript
Crafted by Merlin AI.

AdarshSingh-hmss
Автор

Revision done bhaiya. Yeh week thora inconsistent hoon. Maine yeh baat realise bhi ki hai. Baaki ghar ke kaam aur khudke tuition ke kaam ke wajah se. Bss koshish yahi rahega ki kalse wapas on track aa sakun.

adityasinghh
Автор

Sir Airport waiting lounge mai beath kr apka lecture sun raha hu😂❤

Moti-sync
Автор

Lexical quite similar inheritance and they both different each other but working process same parent to child

bwonjti
Автор

sir waise programming lang ke according 2 types of scoping hote hai naa

.1. lexical (scoping determine in compile time )
2. dynamic (runtime mai determine hota hai scope ( like bash lang))

RaviKumar-zbbl
Автор

If you did this in English it will helpful for more notch teaching and understanding but please do this in English ❤

madheshwaran
Автор

sir backend pe bhi videos bna dijiye jaisa content koi nhi provide kr raha

hritiksingh-bowc
Автор

Similar to Global functioning context.

GIGADEV
Автор

'use strict' ke upar koi video banai hai kya bhaiya.. aur ye wahi wala strice mode hai kya jo react mai index.js mai Strice mode rehta hai??

mdfurquanalam
Автор

Lexical Scope Means, Scope Of it's Parents of Parents Scope Till Global Scope?

Manav_patel
Автор

//Code1
function sum() {
plus(2, 3);
}
let plus = function (a, b) {
console.log(a + b);
};
sum();

//Code 2
plus(2, 3);
let plus = function (a, b) {
console.log(a + b);
};

Sir, Code 1 mai output 5 milta hai because of scope chain, kyunki plus variable mai global scope mai hai to output 5 ho gaya

But Code2 mai bhi variable global scope mai hai, lekin idhar Temporal Dead Zone vala logic apply hota hai aur Reference error milta hai "cannot access plus before initialization"

Isme confusion hai Sir, please explain kar dijiye

fantasytracker
Автор

Sir child isilia show nhi ho rh dev tools mn kuky ye khud hi ik function h or hum ny isko call b ik function mn kia h tu agr isko value hum chahty hain tu isko call krna padhy ga jhan tk 'z' ki bt h vo tu ik variable isilia vo web tools mn show hoa... I think sir confirm nhi h!

Sar_mad_Chandia_
Автор

telegram link not take me to telegram application. how i reach it.?

zeenatzeni