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