addeventlistener what is event in function code example
Example: javascript event listener
element.addEventListener("click", function(){
element.innerText = "something";
});
element.addEventListener("click", function(){
element.innerText = "something";
});