What is the equivalent of jQuery "off" in JavaScript?

Viewed 366

As mentioned in the title what is the JavaScript code that replaces off in jQuery?

document.querySelector('.closeAd').off();

I tried removeEventListener but that requires parameters so won't be an option I guess.

Thanks.

0 Answers
Related