Tuesday, September 7, 2021

How events are processed?

 




An event can happen as soon as execution stack is empty. That means all the function have returned.

All the events resides in message queue in browser engine and waiting to be processed.

Since event listener is a function it put on top of execution stack and become the active execution context.

No comments:

Post a Comment

Abstract factory pattern

When single task can be done by multiple groups/family of objects and decision is taken at the runtime.