Fill in the blanks to correctly remove an event listener 'click'.
The "addEventListener" method
Remove an event listener
Report a typo
Fill in the gaps with the relevant elements
function showAlert() {
alert('Warning!');
}
const alertButton = document.getElementById('alertButton');
alertButton.addEventListener(, showAlert);
// Remove event listener
alertButton.(, );Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.