add eventlistner in javascript code example Example: javascript eventlistener document.addEventListener('click', () => { });