Remove an Event Listener with removeEventListener

Share this video with your friends

Send Tweet

removeEventListener removes an event listener added with addEventListener. However, there are a number of gotchas to watch out for in order to correctly remove an event listener.

antonin
antonin
~ 3 years ago

At 2.47 when removeEventListener is inside addListener onClick function, it remove the listener but clicked is logged once no? PS: you've made such a great course -)