https://v8.dev/blog/fast-async
非同期関数computeAnswer(){
42を返します。
}
未定義
CONST P = computeAnswer()。
未定義
p.then(にconsole.log)。
42
プロミス{<分解>:未定義}
非同期関数foo(){
CONSTのV = 42を待ちます。
Vを返します。
}
未定義
のconst P = FOO()。
未定義
p.then(にconsole.log)。
42
プロミス{<分解>:未定義}