- Instant help with your JavaScript coding problems
addEventListener(type, listener);
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
element.addEventListener('click', (evt) => {
console.log('Clicked');
});