JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script async="">
    function test(){
    	new Promise(resolve => {
        for(let i = 0; i <= 500000000; i++) {
          if(i === 500000000) resolve(i);
        }
      }).then((res) => console.log(res));
    };
  </script>
  <script>
	  test();
    console.log('hi');
  </script>
</head>
<body>
</body>
</html>