Generation

generate functionThu, 01 Jun 2023

Run a function every second

Script function everySecond(func) { setInterval(func, 1000) } everySecond(() => console.log("This will run every second"))

Questions about programming?Chat with your personal AI assistant