Skip navigation
💡 JavaScript tip: If you want an event handler to be removed after the first invocation, so that the…
0:00 / 0:19

💡 JavaScript tip: If you want an event handler to be removed after the first invocation, so that the…

bolt.new

@boltdotnew120K followers

Visit on X

67,714 views

💡 JavaScript tip: If you want an event handler to be removed after the first invocation, so that the even will only trigger once, add `{once: true}` to your `addEventListener`:

Comments

Comments from the original post on X (Twitter)

No comments yet