```js function timer() { var stop = false; window.setTimeout(function() { stop = true; }, 5000); while(!stop) { window.setInterval(function() { console.log("1"); }, 1000); } } function endClock() { } timer(); ```