best way to create synchronous pause in javscript code example
Example: javascript best way to create synchronous pause in program
console.log("Start");
console.time("Promise");
await new Promise(done => setTimeout(() => done(), 5000));
console.log("End");
console.timeEnd("Promise");