Is that like a reverse codegolf?
setInterval(() => console.log(Math.ceil(Date.now()/1000)), 1000);0
This could be 0.999s late, but seems good enough for REPL usage
setInterval(() => console.log(Math.ceil(Date.now()/1000)), 1000);0
This could be 0.999s late, but seems good enough for REPL usage
Suit yourself, though.