15/10
TOP - Foundation: 86% - DOM Manipulation and Events
Today I read about Understanding Callbacks in Javascript as TOP assigned
https://dev.to/i3uckwheat/understanding-callbacks-2o9e
Mostly reviewing function knowledges.
Feel a bit confusing while reading though.
Understood that event object will always happen when there is action on the browser even if there is not .addEventListener
Event Object will go by the event flow: capturing - target - bubbling. If there is no event handler get assigned by .addEventListener for the event.type on the element then it will not be executed so we don't see much of it.
Before I thought .addEventListener is related to event object get created but now I know that event object will get created every time an action happen on the browser regardless of .addEventListener.
Top comments (0)