javascript do something with x seconds inbetween code example
Example 1: javascript timestamp in seconds
const ts = () => Math.floor(new Date().getTime() / 1000);
Example 2: javascript wait 1 second
setTimeout(function(){
console.log("Ready")
}, 1000);