Events are a huge part of what makes it possibly to have dynamic pages, so knowing how to work with them and understanding how they work is pretty important. Take a look at a real, popular interview question that tests your understanding of events.
- [Instructor] Events are a huge part…of what makes it possible to have dynamic pages…so knowing how to work with them,…and understanding how they work is pretty important.…Now let's take a look at a real popular…interview question that tests your understanding of events,…and that is about event propagation, and how it works.…The modern way to create events…are by adding an event listener to an item in your dom,…and you need to pass three different parameters.…The first is the type of event that you want to track.…
So, for example, here would go a click, or something else.…The second is the callback, or function,…that you want to execute when that event takes place,…and finally, the type of propagation.…And the type of propagation is a boolean…so you specify a true or a false value there.…Now that determines the order in…which the event is tracked through the dom.…We'll take a look at an example in just a minute,…but, most of the time, this value is going to be false…which means that the event bubbles up…from the element that was the target…
Skill Level Intermediate
Q: Why can't I earn a Certificate of Completion for this course?
A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.