본문 바로가기

salesforce certification

(10/60) Refer to the code below:Const resolveAfterMilliseconds = (ms) => Promise.resolve (setTimeout (( => console.log(ms), ms ));Const aPromise = await resolveAfterMilliseconds(500);Const bPromise = await resolveAfterMilliseconds(500);Await aPromise, w..

Refer to the code below:

const resolveAfterMilliseconds = (ms) => Promise.resolve (
setTimeout (( => console.log(ms), ms ));
const aPromise = await resolveAfterMilliseconds(500);
const bPromise = await resolveAfterMilliseconds(500);
await aPromise, wait bPromise;

What is the result of running line 05?

이유는 모르겠음. 코드 실행안되므로 답이 D인가??