Skip to content
JavaScript·Intermediate·Conceptual·1 min read

What is an execution context?

Short interview answer

It is the runtime environment used to evaluate code, including lexical and variable environment records, the current this binding, and other execution state. Global code, function calls, and eval create contexts with different rules.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Execution context

Related questions