Difference between “return new Promise()” in normal function and using an async function directly

后端 未结 0 1106
一向
一向 2021-01-30 17:19

Is there any difference between the following two definitions?

const makeGuess = async function (guess) {
    const answer = await getAnswer();
    if (guess == a         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题