Put in order · JavaScript and TypeScript course · Module 8: Events and the DOM

Order: Debounce on Input Event

Arrange the elements of a debounce implementation on the input event:

Items to put in order

  • () => { clearTimeout(timer);
  • timer = setTimeout(search, 300) })
  • let timer;
  • input.addEventListener('input',

You can check the correct answer by solving this task in the CodeWorlds game.