JSFiddle - React, Tailwind, and code Playground

by coktopus

JavaScript

const promise =()=> new Promise((res, rej)=>{
setTimeout(()=>{res('hello')}, 1000)


});



async function x(){
let i = 0
while(i<10){


}
for(i=0;i<10;i){
	await promise().then((res)=>{
  console.log(res);
  if()
  if(i<10){i++}
  })
	  }

}

x()