Use Event Listeners The Right Way!
Introduction
Here's a normal event listener listening for a click event
element.addEventListener('click', function(e) {
if(!e.target.classList.contains('active'))
e.target.classList.add('active')
})
Just from reading that snippet, it is not eas...
abinjohn.in3 min read