async, await 사용예시
마스터욱
1
52
0
0
2022-11-18 12:41:25
async function welcome() {
const aa = await db.execute();
const bb = await db.execute();
const c = aa + bb;
const cc = await db.execute();
const dd = await db.execute();
let f = aa+bb+cc+dd;
/*
//아래를 개선한게 위 소스
successCalla(res1) {
successCalla(res2) {
b = res1 + res2
}
}
*/
}