doSome();
async function doSome(){
console.log('1')
await fyn();
console.log('2')
}
function fyn(){
sleep(1000)
}
function sleep(milliseconds) {
const date = Date.now();
let currentDate = null;
do {
currentDate = Date.now();
} while (currentDate - date < milliseconds);
}
async function fyn(){
sleep(1000)
}
doSome();
сделать console.log('3')