JSFiddle - React, Tailwind, and code Playground

by Praveen Kumar Purushothaman

HTML

<style>#console { border: 1px solid #000; border-radius: 3px; padding: 3px; background-color: #666; color: #fff; font-family: 'Monaco', 'Melno', 'Consolas'; line-height: 1; }</style><script>function cLog(o) {var time = new Date();time = ("0" + time.getHours()).substr(-2) + ":" + ("0" + time.getMinutes()).substr(-2) + ":" + ("0" + time.getSeconds()).substr(-2) + ": ";console.log(time + JSON.stringify(o));document.getElementById("console").innerHTML += "\n" + time + JSON.stringify(o);}</script><pre id="console"><strong>Console Ready</strong></pre>

JavaScript

async function me() {
  cLog("Start");
  await new Promise(done => setTimeout(() => done(), 5000));
  cLog("End");
}

me();