function sleep(time) {
return new Promise((resolve)=>setTimeout(resolve,time));
}
async function main() {
await sleep(4000);
console.log('4');
}
main();