how to stop program for certain amount of seconds js code example
Example 1: pauze js
setTimeout(() => { console.log("2000 milliseconds later!"); }, 2000);
Example 2: pause javascript
function wait(ms)
{
var d = new Date();
var d2 = null;
do { d2 = new Date(); }
while(d2-d < ms);
}