Funkcja strzałek async
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
}
//very simple
async()=>{}
/*
*it's the same just like a normal arrow function,
*but you can also use await (*/
const get=async(url,action)=>{(await fetch(url)).text().then(action)}
/*)
*
*/