javascript best way to create synchronous pause in program

JavaScript
console.log("Start");  
console.time("Promise");  
await new Promise(done => setTimeout(() => done(), 5000));  
console.log("End");  
console.timeEnd("Promise");  

Source

Also in JavaScript: