Without clearInterval the count keeps rising past three.
Acceptance criteria
- 1.#out should show 3.
Without clearInterval the count keeps rising past three.
let count = 0; const id = setInterval(function () { count = count + 1; document.querySelector('#out').textContent = String(count); }, 2);
Output ready when you are
Press Run to render your code, or Submit to validate your solution.