Events and listeners
Comes up in: Recruiter screen, UI coding
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
addEventListener- event object
click,input,submit,keydownpreventDefault- bubbling (intro) and event delegation (intro)
Words you will know
What you will practise
- form that validates on input
- delegated list clicks
Interview questions this answers
- What is event delegation and why is it useful?
- What is
preventDefault()used for?