give event listener javascript code example
Example: js addeventlistener
document.getElementById("example").addEventListener('click', function() {
alert('Click');
});
document.getElementById("example").addEventListener('click', function() {
alert('Click');
});