How JavaScript Code is executed?& Call Stack | Namaste JavaScript Ep. 2
Understand how the code is executed in JavaScript. How an Execution Context is created and how the Call Stack works. Behind the scenes, there are a lot of things happening in JS Engine when the code is executed. All core fundamentals are covered in this video with examples. With this code example in the video, you'll understand how things are working under the hood of javascript when code is executed. You'll get to know what exactly happens when you invoke a function in JavaScript. This js tutorial covers various underlying core fundamentals in depth. Topics Covered: 00:00 - What happens when you run JavaScript Code? 00:32 - Code Example for Execution Context Creation 01:03 - Global Execution Context Creation 01:20 - Memory Allocation Phase & Code Execution Phase 05:56 - Function Invocation and Execution Context Creation 11:15 - What happens while executing return statement 16:35 - Recap of Code Execution synchronously 19:26 - Call Stack in JavaScript 22:21 - Other names of the Call Stack in JS 23:10 -