JavaScript & DSA Progress: Execution Context & Call Stack

🚀 Day 14:– JavaScript + DSA (Java) & DSA Progress Today was a productive learning day! 🔹JavaScript Concepts Learned: I explored how JavaScript code actually works behind the scenes. ✅ JavaScript is a synchronous(Synchronize means ek ke baad ek), single-threaded language — it executes one command at a time in a specific order. ✅ Learned about the Execution Context: When a JavaScript program runs, a Global Execution Context is created. It has two phases: Memory Creation Phase Code Execution Phase ✔ In the memory phase, variables are stored as key–value pairs. ✔ If a variable is declared using var, it is allocated memory and initialized with undefined. ✔ Accessing a var variable before initialization results in undefined due to hoisting. ✅ Understood the Temporal Dead Zone (TDZ): Variables declared with let and const are hoisted but not initialized, and accessing them before declaration throws an error.(jab koi bhi variable temporal deadzone ke andar hota hai then hum usko access nahi kr sakte) ✅ Learned how the Call Stack works: How execution contexts are pushed into the stack How the stack grows and shrinks during function calls Understanding the Global Execution Context and Function Execution Context clearly hosting says that jo bhi aapke variable hai code me unka decleration top pr chala jayega 🔹 DSA (Java) Progress: 💻 Solved LeetCode Problem #78 – Subsets Also practiced finding the Greatest Common Divisor (GCD) using recursion (Euclidean Algorithm). #JavaScript #WebDevelopment #DSA #Java #LeetCode #LearningJourney #100DaysOfCode

  • graphical user interface, text, application, chat or text message

To view or add a comment, sign in

Explore content categories