Next Video: Shortest JavaScript Program & Global Execution Context 🔥 - ua-cam.com/video/QCRpVw2KXf8/v-deo.html How was the video? Are you feeling excited? Please comment below. ❤️
When everything executes and after that global execution and all memory which was allocated all this deleted then if we run this whole code again then new memory will be allocated to variables??
@@ABHISHEKKUMAR-kp5qd which console.log you're referring to ? If it's from line no. 4: It stays in Global Execution context. when Execution Context of b() is finished and popped out of stack then Global exe. context resumes and then logs it to the console. Why this happens because JS is single threaded language and only 1 thing happens at a time in call stack. (If you're still confused, in stack last In first Out happens 1: GEC push , 2nd a() ec push : pop, 3rd b()ec push: pop, GEC pop)
@@shivomsrivastava6540 he is explaing core of javascript, you dont need to learn a language if u just want to implement cuz with experience you memorise code
Summary: 1. We learnt how functions work in JS. 2. At first a global execution context is created, which consists of Memory and code and has 2 phases: Memory allocation phase and code execution phase. 3. In the first phase, the variables are assigned "undefined" while functions have their own code. 4. Whenever there is a function declaration in the code, a separate local execution context gets created having its own phases and is pushed into the call stack. 5. Once the function ends, the EC is removed from the call stack. 6. When the program ends, even the global EC is pulled out of the call stack.
I think in point 4 it should be rather on function invocation rather than function declaration a local EC is created and pushed to the call stack having its own local and global scope
In first phase function variables point to what please explain i didn't get it and when functions are called what is stored inside variable a and variable b please reply
This guy is crazy about JS and a gem to the teaching fraternity .Explaining all the minute details with such high energy and enthusiasm.The hand gestures, the smile of satisfaction just proves his intentions of helping . #SharingisCaring
I teach high school students JavaScript programming and I love these videos. They are fantastic and really help my students understand how JS works so they can create quality code and increases their troubleshooting skills. Thank you!!
After school, this is the kind of teaching I was missing! Awesome presentation and explanation Akshay! The phobia of JS is reducing further after completing each video.
I've been fumbling around with learning Javascript for the last year, video after video of watching people build projects,and not learning a thing. You're videos are the first I have found that teach me all the things about JS that I have been wanting to learn, and missing with all the other peoples videos. Thank you so much for making me love learning this language again. I had nearly lost hope.
I can write reasonably good JS code (I spend a lot of time with serverside stuff) but I have to admit, I never understood what was going on behind the scenes. Suddenly, tiny little bugs I used to experience are starting to make more sense. This playlist is extraordinary! I’m binging the entire thing! I’m so glad I can finally explain the local and global execution contexts! Onward 😁🎊💯❤️🙌🏽✨
Brother....never stop creating such videos.....I am trying to learn JavaScript though some paid courses but they literally confused me and then I came across your videos I have to tell, you are a life saver, Please create more such videos or even a Js course. Will share this as much as I can
7:30 in the morning and i have never been so excited to study something so complicated. Hands down , best explanation ever. Thank you so much Akshay. Appreciate your hard work.
You don't have to say keep watching it for 2more minutes or please bear with me. Viewers are totally glued to your series. It is that amazing. Thanks so much for these insights.
I spent months to get this insight! Such well crafted video every detail went straight into our heads! Thanku so much for your priceless efforts bhaiya🧡
I'm having industrial experience of working with javascript based projects in NodeJS. But I'm here to sharpen my knowledge and get in-depth or actual working on the program. Though I have working experience, I'm listening many new things in Namaste Javascript series. I'm really enjoying your videos. Thank you! :)
The only teacher where after the lecture we move happily to another video without having any doubts ❤❤ kudos to you !! loving your content !! thank you for making JavaScript so easy for us!!🙏🙏
These series teach me more about JS in an hour than I've learned in 8 hours copying and writing along other videos. There is so much theory behind it, and it's all structured like the whole program is structured in JS. If there is a "right way" to learn a language, this is the closest it can get.
For revision: 1) The higher level of the GEC on the stack, higher its preference 2) GEC is created as the function is invoked and destroyed as its execution is completed 3) same variable names but different scope of execution separates the variable values
the GEC term is used to simplify understanding the execution of main function, same execution context is created if function is created inside the global function, as its stack priority is high, given its preference and worked under the main (GEC) context same thing happens when you create function > inside a function > inside a function (consider it as staircase where upper step person is taller than person in lower step and hence it has given preference ) local execution context introduced when inner function is in execution
var x =7; a(); b(); console.log(x); function a() { var x=10; console.log(x); } function b(){ x=45; console.log(x); } //mine returns 10 45 45 instead of 10 45 7 yet GEC in the last function is destroyed before going to the global var X initialised to 7
Great work Akshay, being a backend developer havent worked much with JS, but your tutorials are coming as great help now that I am brushing up the concepts. Kudos and Thanks!
Akshay, I'm honestly speaking you are explaining the concepts so well and I searched for a specific module in UA-cam and I found you and I'm grateful to that. After completing the first video in Namaste Js, I felt like I subscribed to a right channel, right person and watching a right video. You are doing an extreme work and I hope my comment will be boost you to do more videos.
Excellent content 👌.. Your contribution has saved lot of our time and possible confusion that used to happen while reading other online materials.. cheers and success & good luck be with you..♥️♥️♥️💪 [Knowledge sharing or Vidya daan is one amongst the biggest offerings one could perform]
I had to stop half way to drop a comment. I really like your method of teaching bro, you repeat and point out every little detail while teaching and that's what makes you so understandable. As requested by by most here, React JS PLEASEEEEEEEE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You are seriously killing it Bro. I mean the way you explain concepts is way awesome then so many tutorials, which in the name of JavaScript Engine just confuse as they themselves are confused.
I know this acts in 4 different ways like, 1. dynamically scoped inside a function 2. lexically scoped inside arrow functions 3. Defaults to global scope when used in an inner function 4 i dont remember will update once i remember, But im very eagerly waiting for your take on 'this' keyword.
Was able to predict the correct output without having to listen to your explanation by just applying your teachings of video 2. The proof of how well u have taught 🙌
Things Learned: 1. We learnt how functions work in JS. 2. At first a global execution context is created, which consists of Memory and code and has 2 phases: Memory allocation phase and code execution phase. 3. In the first phase, the variables are assigned "undefined" while functions have their own code. 4. Whenever there is a function declaration in the code, a separate local execution context gets created having its own phases and is pushed into the call stack. 5. Once the function ends, the EC is removed from the call stack. 6. When the program ends, even the global EC is pulled out of the call stack. Please Like & Comment If it is Helpful😎✌ So it can be Useful for Others Too
This was awesome! I am coding JS since last 3 years but today I finally got the idea how things are working behind the scenes, that too in live browser. Thanks man.
Hi Akshay, 6:54 : After you mentioned var x will be created again in the function execution context I got little confused about var. Then I remember about closure which cleared that if the variable not found in the function scope of the function it will check to its parent scope.
after watching this whole namaste javascript, interviews became so smooth specially knowing how js works in terms of js engine, eventloop, call stack. All thanks to your efforts of creating this beautiful playlist.
One thing he missed to explain was that, if the variable is missing in the current local Execution context, the variable is looked up in the higher level EC. If not found, it comes to the Global EC at the end. If not found in GEC, then it is not defined.
The best part: "Exact working of Call stack and that small SCOPE tab where GLOBAL & LOCAL scopes are created & destroyed". I would never come to know its working at this particular time otherwise. Thanks Akshay :)
Sir i have WERID DOUBT! Consider this program: a(); var x=2; function a(){ console.log(x); } In the above program when we console.log x in function a() it should print undefined right because inside the function there is no variable x so it will look for the variable in the global execution context but still in the GEC it is undefined. Now the problem is when i run this code using Node it gives me undefined as expected BUT when i run the code in browser it gives me 2. How is this happening? Does JS behave differently when run on browser and when run using node??? Please clear my doubt sir Thank You !
Lovely doubt, Aayush and it shows how well you have seen the videos. ❤️ The concept is covered in the Ep.7 i.e. The Scope Chain. You'll 100% get your answer after watching how Scope works. Link to the video - ua-cam.com/video/uH-tVP8MUs8/v-deo.html But thank you so much for watching it patiently, shows your passion and dedication brother. 🔥
If x is not available in current block of code than , JavaScript look for it on above that function and if JavaScript find that X than console log that X value
The way you are teaching is just amazing. When watching this Video i was feeling like i am in the live class and when you forgot to add execution context in stack i was like sir sir you forgot to do that, please do it. Just amazing feeling to learn from you. Way of your teaching is just great, indeed you are a very very good teacher, blessed to be your student, keep doing this great thing of teaching sir.
A person can reveal the level of his knowledge by the clarity and confidence in his words, you convey what you want to right to the point bro. Thanks for such no-shit content .
Oh boy ! Only best javascript playlist which can even crush all paid courses in one go ... in-depth explain, after completing all videos no interviewer can reject u ..... thank you for giving such detail course free of cost.
Difficult to skip a single video or a single concept from your video. I am taking notes along watching it. All episodes have been very interesting so far and appear very connected to subsequent episodes. Thank You!
I now have understood how closure is handled by JavaScript and how the local execution scope has its pointer referenced to the outer lexical environment(In the video you mentioned function a's scope has the global scope attached it)Many many thanks.
Really like that you explaining the same things multiple time it is a little bit boring and it must me boring to tell it, but it makes a great understanding. Thank you 🙏
this is by far the best explaination I have seen . i feel so happy that creators like you exist on youtube making content available for free .Thank you so much
just watched the 4 episodes of namaste javascript, and bro let me tell you i didn't even wanted to watch all these videos of javascript i was just looking fr something to learn closure. but after watchig that video i was like, hmm lets give this playlist a try, wathed the first video, it was cool but i didn't think much of it, but as i watched 2 and 3 video and I was mind blown! it was like my mind was somewhat expanded, i was able to think in terms of execution context, memory creation, execution and truly it was amazing. let me tell you i dont usually comment or like videos but for you it was like, this person REALLY deserves that. and as i was watching this video when you asked what the output will bw at starting, i was able to like quickly create a execution context in my head create execution context for both function and clear them as the code executed, and was able to give the right answer, and i was like this is amazing. and quickly paused the video and came to comment down this. just want to say that this playlist wasn't something i was looking for, but it is something i needed very much! so Thank You for creating this series. 💓💓
I feel I should have known about your channel much before. Your videos are as interesting and addictive as of any favourite tv series. This makes us fall in love with JS 😋
What an amazing explaination, hats off to you . Being a biotech student I had to go through the js topics twice to perform something on react or node . But after watching 4 episodes of Namaste JavaScript , I have gained so much confidence . Thank you much .🤩
I am on this series so far and there no dislike at all , in a single video, This is the way of teaching Thanks Man for this series . I am really enjoying .
Hi Akshay, thanks alot. You made life easy especially for the ones like me who are coming from noncoding background. You have explained so beautifully covering every aspect in and out. All whys and whats are covered. The magic is like you are teaching in such a way that anyone can understand. Really head bow for the amazing talent and sharing your knowledge around the globe.
The way you explain is so natural and common. It looks like my close friend is explaining to me. The best thing is the excitement on your face while teaching the interesting and important things. It's gold ❤️❤️😂🙏
Akshay Saini sir I know you might have been tired of hearing this.. but you are GOD of Javascript !! 🙏🙏🙏 Thank you so so much for putting so much effort and helping us understand these concepts in such an easy manner.
I haven't seen this type of wonderful explanation,the joy of you while explaining is awesome. Your eyes 👀 are clearly mentioning,how much you are happy to share your knowledge📚. Awsome brother💚
recently i have started react native course as i am a beginner so i started to learn from your javascript program ,i must have to say this your teaching style is so smooth and simple even a beginner like me understanding what you are teaching sir i have tried to learn before but it was so messed up every time my brain feel like i am learning some alien language 😅🤣🤣 👍👍
It’s 2024 and there is no teacher who teaches better than you when it comes to Javascript. Thought of moving out Front end domain from last 3 months, but now, my goal is to become a great Front end engineer 😊
I am loving your videos...please teach us more...you are like such a great teacher...never understood JS so much and now after understanding things...falling in love with JS..come up with React,Redux and Node JS videos plzzzzzz
The best explanation of a function execution in the context of web browser i have ever seen on any you tube channel. Thanks for sharing with us. I am also looking for an explanation of how a typical node application architecture works like events, asynchronous APIs and Non- blocking IO and event loop
Thanks a Ton Akshay!!! I was always confused where Var scope starts & ends. Now I have good clarity. Really due to this clarity & your series "Namaste Javascript", Javascript is looking really interesting to learn now. I was never interested in JS before, like I am right now after watching this amazing video.. Thanks a ton again!!!
Thanks a lot sir. I want to personally meet and thank you. I thought I know javascript but I failed in every javascript interview as they are focused on in-depth javascript concepts rather than development concepts. Now I'm learning from you and I'm beginning to feel that I'm learning :-)
Bhai dur hu pr dur se he pair pad rha hu aapke. Js kr rha tha kuch smjh ni aa rha tha reason basics clear nhi the thankyou bhai aapki wjh se kuch to smjh aa rha hai ❤
i have visited plenty of channels to learn JS from scratch and now I think my search is completed looking forward to learn react from you . please teach react next
Wow this is superb explaining of code with line by line that how does the code work in the backend and I literally want to say that before watching this, I watched many tutorials of JS but in that these things were not included what u explained in your video which actually shows that how does the code work in the backend. ❤👌 Thanks for making such videos.
Next Video: Shortest JavaScript Program & Global Execution Context 🔥 - ua-cam.com/video/QCRpVw2KXf8/v-deo.html
How was the video? Are you feeling excited? Please comment below. ❤️
Hey Akshay, all your videos are really helpful. Can you explain how let and const work begin the scene ?
When everything executes and after that global execution and all memory which was allocated all this deleted then if we run this whole code again then new memory will be allocated to variables??
sir,how console.log() function execution context is invoked and kept in call stack?
@@ABHISHEKKUMAR-kp5qd which console.log you're referring to ? If it's from line no. 4: It stays in Global Execution context. when Execution Context of b() is finished and popped out of stack then Global exe. context resumes and then logs it to the console. Why this happens because JS is single threaded language and only 1 thing happens at a time in call stack. (If you're still confused, in stack last In first Out happens 1: GEC push , 2nd a() ec push : pop, 3rd b()ec push: pop, GEC pop)
@@SirLovePeach thanks man
If you teach anyone can learn coding. You’re a gem to the community. Please teach reactjs next. Please! 🙏🏻💯
We need react js
Yes bhai react also please
Yaa react js
yes plss akshay bhai
much needed, especially react Hooks
After 5 years working with Javascript, im understanding the basics with the help fo you !
Same here
@@Varunkumarmca then how did you work 5 year
@@tusharsolanki8564 bruhhhhhhhhh
@@shivomsrivastava6540 he is explaing core of javascript, you dont need to learn a language if u just want to implement cuz with experience you memorise code
@@Gangbuster74 I completely agree
Summary:
1. We learnt how functions work in JS.
2. At first a global execution context is created, which consists of Memory and code and has 2 phases: Memory allocation phase and code execution phase.
3. In the first phase, the variables are assigned "undefined" while functions have their own code.
4. Whenever there is a function declaration in the code, a separate local execution context gets created having its own phases and is pushed into the call stack.
5. Once the function ends, the EC is removed from the call stack.
6. When the program ends, even the global EC is pulled out of the call stack.
I think in point 4 it should be rather on function invocation rather than function declaration a local EC is created and pushed to the call stack having its own local and global scope
i just cant remember what is ment by function are first class citizens ?
Thanks for providing summary . I am just starting JS
In first phase function variables point to what please explain i didn't get it and when functions are called what is stored inside variable a and variable b please reply
@@jigneshnayak7870 hey.. In first phrase
incase of variables it shows as UNDEFINED
And incase of Function.. new EC is formed .
This guy is crazy about JS and a gem to the teaching fraternity .Explaining all the minute details with such high energy and enthusiasm.The hand gestures, the smile of satisfaction just proves his intentions of helping . #SharingisCaring
Yes he loves his job. Rare to see such kind of enthusiastic people.
I am going to be honest with you. You are literally so good at this. I get excited to watch your content after full time work. Please keep going.
So happy to know that. ❤️
I teach high school students JavaScript programming and I love these videos. They are fantastic and really help my students understand how JS works so they can create quality code and increases their troubleshooting skills. Thank you!!
After school, this is the kind of teaching I was missing! Awesome presentation and explanation Akshay! The phobia of JS is reducing further after completing each video.
❤️
@@akshaymarch7 i am in love with his look and style😍
I've been fumbling around with learning Javascript for the last year, video after video of watching people build projects,and not learning a thing. You're videos are the first I have found that teach me all the things about JS that I have been wanting to learn, and missing with all the other peoples videos. Thank you so much for making me love learning this language again. I had nearly lost hope.
I can write reasonably good JS code (I spend a lot of time with serverside stuff) but I have to admit, I never understood what was going on behind the scenes. Suddenly, tiny little bugs I used to experience are starting to make more sense. This playlist is extraordinary! I’m binging the entire thing! I’m so glad I can finally explain the local and global execution contexts! Onward 😁🎊💯❤️🙌🏽✨
Brother....never stop creating such videos.....I am trying to learn JavaScript though some paid courses but they literally confused me and then I came across your videos I have to tell, you are a life saver, Please create more such videos or even a Js course. Will share this as much as I can
7:30 in the morning and i have never been so excited to study something so complicated. Hands down , best explanation ever. Thank you so much Akshay. Appreciate your hard work.
❤️
You don't have to say keep watching it for 2more minutes or please bear with me. Viewers are totally glued to your series. It is that amazing. Thanks so much for these insights.
I spent months to get this insight! Such well crafted video every detail went straight into our heads! Thanku so much for your priceless efforts bhaiya🧡
We need teachers like you , who are passionate about teaching and make things understand easily
I'm having industrial experience of working with javascript based projects in NodeJS. But I'm here to sharpen my knowledge and get in-depth or actual working on the program.
Though I have working experience, I'm listening many new things in Namaste Javascript series.
I'm really enjoying your videos. Thank you! :)
Eagerly waiting to understand the ""THIS"" concept
The only teacher where after the lecture we move happily to another video without having any doubts ❤❤ kudos to you !!
loving your content !!
thank you for making JavaScript so easy for us!!🙏🙏
You're the first youtuber in coding to whom i recommended to all of my co-worker and friends. Kudos to you bro.
❤️
Awesome man, I am stuck to my chair to complete this playlist🔥
Glad to know that you're enjoying it! ❤️
yeah seriously, I am just fall in love with your way of teaching
@@yousufbabashaik3314 me too
I have never come across such high-quality content on JS. Thanks for digging so deep.
Then you never used UA-cam before? There are plenty of courses dude.
@@Utubewonderful please STOP spreading HATE.
@@Utubewonderful There weren't any 3 years back DUDE
These series teach me more about JS in an hour than I've learned in 8 hours copying and writing along other videos.
There is so much theory behind it, and it's all structured like the whole program is structured in JS.
If there is a "right way" to learn a language, this is the closest it can get.
For revision:
1) The higher level of the GEC on the stack, higher its preference
2) GEC is created as the function is invoked and destroyed as its execution is completed
3) same variable names but different scope of execution separates the variable values
If I'm not wrong, instead of GEC, it will be local execution context of the function
the GEC term is used to simplify understanding the execution of main function, same execution context is created if function is created inside the global function, as its stack priority is high, given its preference and worked under the main (GEC) context same thing happens when you create function > inside a function > inside a function (consider it as staircase where upper step person is taller than person in lower step and hence it has given preference ) local execution context introduced when inner function is in execution
var x =7;
a();
b();
console.log(x);
function a() {
var x=10;
console.log(x);
}
function b(){
x=45;
console.log(x);
}
//mine returns 10 45 45 instead of 10 45 7 yet GEC in the last function is destroyed before going to the global var X initialised to 7
@@ropkb Because in func b() you haven't declare a new local variable. And you changed the value of global var x.
A good thing in your video is ....you never waste the time of your viewers ..hats of to you sir, superb explanation
With this series of videos, I'm finally on the path of understanding JS once for all! Thanks a lot bro!
Great work Akshay, being a backend developer havent worked much with JS, but your tutorials are coming as great help now that I am brushing up the concepts. Kudos and Thanks!
Great series, this is my first comment on video in past 5 years :) Love it
I have my first FE interview in a week and I'm binge watching the entire channel! Loving the content. Hope it's enough :)
Akshay, I'm honestly speaking you are explaining the concepts so well and I searched for a specific module in UA-cam and I found you and I'm grateful to that. After completing the first video in Namaste Js, I felt like I subscribed to a right channel, right person and watching a right video.
You are doing an extreme work and I hope my comment will be boost you to do more videos.
Excellent content 👌.. Your contribution has saved lot of our time and possible confusion that used to happen while reading other online materials.. cheers and success & good luck be with you..♥️♥️♥️💪 [Knowledge sharing or Vidya daan is one amongst the biggest offerings one could perform]
Love you, Scooby Man ❤️
I had to stop half way to drop a comment. I really like your method of teaching bro, you repeat and point out every little detail while teaching and that's what makes you so understandable. As requested by by most here, React JS PLEASEEEEEEEE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I just learned something which might be asked in the interview wo bhi itnaa asani se 🙏🙏 Thank you bhaiya
You are seriously killing it Bro. I mean the way you explain concepts is way awesome then so many tutorials, which in the name of JavaScript Engine just confuse as they themselves are confused.
I know this acts in 4 different ways like,
1. dynamically scoped inside a function
2. lexically scoped inside arrow functions
3. Defaults to global scope when used in an inner function
4 i dont remember will update once i remember,
But im very eagerly waiting for your take on 'this' keyword.
This is Also very interested topic I love it...Akshay's...you also consider please
Was able to predict the correct output without having to listen to your explanation by just applying your teachings of video 2.
The proof of how well u have taught 🙌
♥️
Things Learned:
1. We learnt how functions work in JS.
2. At first a global execution context is created, which consists of Memory and code and has 2 phases: Memory allocation phase and code execution phase.
3. In the first phase, the variables are assigned "undefined" while functions have their own code.
4. Whenever there is a function declaration in the code, a separate local execution context gets created having its own phases and is pushed into the call stack.
5. Once the function ends, the EC is removed from the call stack.
6. When the program ends, even the global EC is pulled out of the call stack.
Please Like & Comment If it is Helpful😎✌
So it can be Useful for Others Too
This was awesome! I am coding JS since last 3 years but today I finally got the idea how things are working behind the scenes, that too in live browser. Thanks man.
Hi Akshay,
6:54 : After you mentioned var x will be created again in the function execution context I got little confused about var. Then I remember about closure which cleared that if the variable not found in the function scope of the function it will check to its parent scope.
Yes you are absolutely right!
Parent scope = global scope
The global execution context
Man this is evergreen content u have created on JavaScript and it's 2022 u made me fall in love with js ❤️
I wish you to come my college and teach to my faculties 😂😂😂
You're explanation is perfect that's enough nothing to say
frankly speaking..
after watching this whole namaste javascript, interviews became so smooth specially knowing how js works in terms of js engine, eventloop, call stack. All thanks to your efforts of creating this beautiful playlist.
One thing he missed to explain was that, if the variable is missing in the current local Execution context, the variable is looked up in the higher level EC. If not found, it comes to the Global EC at the end. If not found in GEC, then it is not defined.
He has explained this in the subsequent videos, where he has talked about scopes and closures.
The best part: "Exact working of Call stack and that small SCOPE tab where GLOBAL & LOCAL scopes are created & destroyed". I would never come to know its working at this particular time otherwise. Thanks Akshay :)
Sir i have WERID DOUBT! Consider this program:
a();
var x=2;
function a(){
console.log(x);
}
In the above program when we console.log x in function a() it should print undefined right because inside the function there is no variable x so it will look for the variable in the global execution context but still in the GEC it is undefined. Now the problem is when i run this code using Node it gives me undefined as expected BUT when i run the code in browser it gives me 2. How is this happening? Does JS behave differently when run on browser and when run using node??? Please clear my doubt sir Thank You !
Lovely doubt, Aayush and it shows how well you have seen the videos. ❤️
The concept is covered in the Ep.7 i.e. The Scope Chain. You'll 100% get your answer after watching how Scope works.
Link to the video - ua-cam.com/video/uH-tVP8MUs8/v-deo.html
But thank you so much for watching it patiently, shows your passion and dedication brother. 🔥
@@akshaymarch7 Thank you sir it means a lot! :)
I think should print undefined
@@satyampatidar5848 yes in node it prints undefined but in browser in prints 2
If x is not available in current block of code than , JavaScript look for it on above that function and if JavaScript find that X than console log that X value
The way you are teaching is just amazing. When watching this Video i was feeling like i am in the live class and when you forgot to add execution context in stack i was like sir sir you forgot to do that, please do it. Just amazing feeling to learn from you.
Way of your teaching is just great, indeed you are a very very good teacher, blessed to be your student, keep doing this great thing of teaching sir.
Someone:exist
Akshay: Global Execution is created.
A person can reveal the level of his knowledge by the clarity and confidence in his words, you convey what you want to right to the point bro. Thanks for such no-shit content .
when he asked
x will have?
I shouted toxicity :|
😂😂😂always
No one on youtube explain this topic in such a clear way. Kudos to you my friend .
Oh boy ! Only best javascript playlist which can even crush all paid courses in one go ... in-depth explain, after completing all videos no interviewer can reject u ..... thank you for giving such detail course free of cost.
I have seen other tutorials, but nowhere the explanation is this clear. Loving JavaScript!
your knowledge is exclusive...I can't imagine how much effort you had put in to learn all these and you are teaching all this in free
Difficult to skip a single video or a single concept from your video. I am taking notes along watching it. All episodes have been very interesting so far and appear very connected to subsequent episodes. Thank You!
Hi bro
Can u share ur notes
I now have understood how closure is handled by JavaScript and how the local execution scope has its pointer referenced to the outer lexical environment(In the video you mentioned function a's scope has the global scope attached it)Many many thanks.
After Ravindra babu ravula, never seen anyone explain better than him, but brother you are the best.
Really like that you explaining the same things multiple time it is a little bit boring and it must me boring to tell it, but it makes a great understanding.
Thank you 🙏
This is undoubtedly the best Js series i have encountered so far
I have seen plenty of videos on javascript but No one teaching like you in a fun way and step by step.looking for more videos.
seriously after watching this , i am in love with javascript ❤ thank you @akshay sir , i am very lucky to got you as my teacher , we love you :)
Thank you so much for your sweet comment, Shivani ❤️✌️
@@akshaymarch7 thankyou so much sir ❤️🙏🙏
This is literally awesome, I started loving your videos. I haven't got such a nice explanation anywhere about Execution Context.
Oh my God, its midnight and i am so excited to watch all your videos now itself 😍 Best Explanation ever. Loving your style and end music also 🎵
this is by far the best explaination I have seen . i feel so happy that creators like you exist on youtube making content available for free .Thank you so much
best video ever, when I found out when you return something to a function and function ends.
just watched the 4 episodes of namaste javascript, and bro let me tell you i didn't even wanted to watch all these videos of javascript i was just looking fr something to learn closure. but after watchig that video i was like, hmm lets give this playlist a try, wathed the first video, it was cool but i didn't think much of it, but as i watched 2 and 3 video and I was mind blown! it was like my mind was somewhat expanded, i was able to think in terms of execution context, memory creation, execution and truly it was amazing. let me tell you i dont usually comment or like videos but for you it was like, this person REALLY deserves that. and as i was watching this video when you asked what the output will bw at starting, i was able to like quickly create a execution context in my head create execution context for both function and clear them as the code executed, and was able to give the right answer, and i was like this is amazing. and quickly paused the video and came to comment down this. just want to say that this playlist wasn't something i was looking for, but it is something i needed very much! so Thank You for creating this series. 💓💓
when you teaches then I think everyone is excited.
You love JavaScript man.
Thanks a ton.
I feel I should have known about your channel much before. Your videos are as interesting and addictive as of any favourite tv series. This makes us fall in love with JS 😋
What an amazing explaination, hats off to you . Being a biotech student I had to go through the js topics twice to perform something on react or node . But after watching 4 episodes of Namaste JavaScript , I have gained so much confidence . Thank you much .🤩
I am on this series so far and there no dislike at all , in a single video, This is the way of teaching Thanks Man for this series . I am really enjoying .
Hi Akshay, thanks alot. You made life easy especially for the ones like me who are coming from noncoding background. You have explained so beautifully covering every aspect in and out. All whys and whats are covered. The magic is like you are teaching in such a way that anyone can understand. Really head bow for the amazing talent and sharing your knowledge around the globe.
The way you explain is so natural and common. It looks like my close friend is explaining to me. The best thing is the excitement on your face while teaching the interesting and important things. It's gold ❤️❤️😂🙏
If there would be an award for best teacher on youtube in future, you have all my votes. hands down man, this is nothing short of art.
♥️
Never seen this kind of in-depth knowledge for free, you are just awesome
Akshay Saini sir I know you might have been tired of hearing this.. but you are GOD of Javascript !! 🙏🙏🙏 Thank you so so much for putting so much effort and helping us understand these concepts in such an easy manner.
I haven't seen this type of wonderful explanation,the joy of you while explaining is awesome.
Your eyes 👀 are clearly mentioning,how much you are happy to share your knowledge📚.
Awsome brother💚
recently i have started react native course as i am a beginner so i started to learn from your javascript program ,i must have to say this your teaching style is so smooth and simple even a beginner like me understanding what you are teaching sir i have tried to learn before
but it was so messed up every time my brain feel like i am learning some alien language 😅🤣🤣 👍👍
It’s 2024 and there is no teacher who teaches better than you when it comes to Javascript. Thought of moving out Front end domain from last 3 months, but now, my goal is to become a great Front end engineer 😊
dhanyavad for this beautiful explanation..
Bas ek shikayat hai apse jo aap kar rahe ho through your vidoes.
really making us fall in ❤ with JS
Generally I sleep watching the tutorial videos due to the theoretical part but watching your tutorial sleep is far from coming. Awesome
Haha 😅
This playlist is pure gold for every web developer.
Used to hate JavaScript, but now I am literally dreaming about JavaScript. U are Awesome Akshay. Keep it up.
This playlist will be something different from usual javascript tutorials!!
Loved the way you explain it so simply ❤️
You are a genius in teaching, really am understanding the basics now after my 5years of experience in UI
I am loving your videos...please teach us more...you are like such a great teacher...never understood JS so much and now after understanding things...falling in love with JS..come up with React,Redux and Node JS videos plzzzzzz
probably the best javascript playlist on youtube
Well, it took three of his videos to fall in love with JavaScript. Excellent content man. keep it up.
The Man has no words how to appreciate his teaching.. very osm explanation
I like how he is so passionate about teaching JS to his friends.
The way you cover every concept is just amazing and the simple language 🙏
Very clear and very easy to understand........too good ....gone through the lots of stuff but you are amazing
Amazing everytime I watch it I learn something new. Please make a series in React js
The best explanation of a function execution in the context of web browser i have ever seen on any you tube channel. Thanks for sharing with us. I am also looking for an explanation of how a typical node application architecture works like events, asynchronous APIs and Non- blocking IO and event loop
Thanks a Ton Akshay!!! I was always confused where Var scope starts & ends. Now I have good clarity.
Really due to this clarity & your series "Namaste Javascript", Javascript is looking really interesting to learn now. I was never interested in JS before, like I am right now after watching this amazing video.. Thanks a ton again!!!
Seriously never learnt javascript this way thank you very much feeling more confident now may god bless you and give you all the success 🙏
Thanks a lot sir. I want to personally meet and thank you. I thought I know javascript but I failed in every javascript interview as they are focused on in-depth javascript concepts rather than development concepts. Now I'm learning from you and I'm beginning to feel that I'm learning :-)
Bhai dur hu pr dur se he pair pad rha hu aapke. Js kr rha tha kuch smjh ni aa rha tha reason basics clear nhi the thankyou bhai aapki wjh se kuch to smjh aa rha hai
❤
i have visited plenty of channels to learn JS from scratch and now I think my search is completed looking forward to learn react from you . please teach react next
Excellent way of teaching.We don't get this type of in depth knowledge even in paid courses.
Tomorrow is Eid and enjoying chand raat watching this amazing playlist. Learning is fun on this channel ❤
after 3 years as a javascript developer i startd to learn javascript..Thanks Man
Wow this is superb explaining of code with line by line that how does the code work in the backend and I literally want to say that before watching this, I watched many tutorials of JS but in that these things were not included what u explained in your video which actually shows that how does the code work in the backend. ❤👌 Thanks for making such videos.