Hi you guys I’m new to JS and programming in general. Just started learning and was wondering out of curiosity is there a way to loop through click eventListener. So Each time I click on my h1 header with a title id I get the innerHTML changed kind of like a infinite shuffle ?
const element = document.getElementById("title");
element.addEventListener("click", function(){
element.innerHTML = "Cool Right?";
element.addEventListener("click", function(){
element.innerHTML = "SoundPad";
});
});