on click listener event code example Example: javascript eventlistener document.addEventListener('click', () => { });