Skip to main content
TOPIC 6 OF 9 · 2 MIN READ

Functional Execution Context

A Functional Execution Context (FEC) is created whenever a function is invoked. It handles the function's variables, parameters, and inner functions.

Key concepts

FEC

Execution context specific to a function call.

Scope Chain

Includes the function's local scope and its parent scopes.

Examples

Function Call Creates FEC:

function add(a, b) {
  return a + b;
}
add(5, 10); // Creates a new FEC

Practise it

Try these without looking back. If you can explain each one out loud, you are ready for this question.

  • Create a nested function to observe scope chaining within an FEC.

Stuck on this one? Talk to Sumit.

Keys: F focus mode · ← → previous / next topic · Esc leave focus