Bit #24 You can add the option { once: true } to an event listener to automatically remove it when has been invoked. btn.addEventListener("click", handleClick, { once: true });