JavaScript 101 - Part 3: Function Execution Context And Call Stack

12 may 2026 · 5 min read

as in previous parts we have discussed what actually is Execution Context, Memory Creation Phase , Code Execution Phase and Hoisting
now let's understand what happen behind the scene actually how function code executed via creating new Execution Context and what happen inside call stack

Let's take this code as Example.


function greet() {
  console.log("Hello");
}

function askName() {
  console.log("What is your name?");
}

function sayBye() {
  console.log("Bye");
}
sameer rza md sameer razasameer ˀz44sameer rza krrrr
ewh ber 0
  
  

greet();
askName();
sayBye();
      
diagram

as we have seen code, first greet() called

diagram
move to JavaScript 101 - Part 4 →