We can also remove events with the removeEventListener() method. Add the method to the event handler and try tapping the element twice.
removeEventListener()
Make sure to pick removeEventListener.
removeEventListener