growthmindsit

Debugging

Error Handling & Debugging

The JavaScript interpreter uses the concept of execution contexts.There is one global execution context; plus, each function creates a new new execution context. They correspond to variable scope.

EXECUTION CONTEXT :Every statement in a script lives in one of three execution contexts: