const btnClick = document.getElementById("btnClick") let clickCount = 0 btnClick.addEventListener('click', (e) => { btnClick.textContent = `I've been clicked ${++clickCount} time${clickCount > 1 ? "s" : ""}, and the last event detail was ${e.detail}` })