we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "javascript best way to create synchronous pause in program"
Laura
25 Aug 2019
1console.log("Start");  
2console.time("Promise");  
3await new Promise(done => setTimeout(() => done(), 5000));  
4console.log("End");  
5console.timeEnd("Promise");  
6