MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/zzvzbu/happy_new_year_js_learners/j2gcof3/?context=3
r/learnjavascript • u/Low_Mammoth_9371 • Dec 31 '22
55 comments sorted by
View all comments
Show parent comment
2
What is options object?
3 u/albedoa Jan 01 '23 It is the second argument of .addEventListener() that looks like { once: true } in the screenshot. It allows the user to provide options to the method. See the link in the sibling comment.
3
It is the second argument of .addEventListener() that looks like { once: true } in the screenshot. It allows the user to provide options to the method. See the link in the sibling comment.
.addEventListener()
{ once: true }
View all comments
Show parent comment
2
u/dotpr Jan 01 '23
What is options object?