синтаксис функции асинхро
const foo = async () => {
await// do something
}
// OR
async function foo() {
await// do something
}
Inquisitive Iguana
const foo = async () => {
await// do something
}
// OR
async function foo() {
await// do something
}