Question · JavaScript and TypeScript course · Module 8: Events and the DOM

How debounce works

What does the debounce technique do when applied to the input event?

Answer options

  • Runs the function only after a set time passes WITHOUT new calls
  • Runs the function immediately on every keystroke
  • Blocks the input event entirely
  • Runs the function exactly once on page load

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