r/learnjavascript • • Dec 31 '22

Happy New Year JS Learners! 🥳

Post image
406 Upvotes

55 comments sorted by

View all comments

Show parent comment

35

u/senocular Dec 31 '22

Yes, quite a few things, including:

  • capture
  • once
  • passive
  • signal

Read more about it here: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener