← Back to JavaScript exercises

35. Stopwatch

Result appears here
let seconds=0;button.onclick=()=>setInterval(()=>output.textContent=++seconds,1000);