Engrain by ByteRush

FND.10.02 BeginnerCore — asked often

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, keydown
  • preventDefault
  • bubbling (intro) and event delegation (intro)

Words you will know

eventlistenerhandlerbubblingdelegation

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?