What is the purpose of the parameter to the function inside the then function while using async in javascript?

后端 未结 0 1234
礼貌的吻别
礼貌的吻别 2021-01-02 16:25
async function testAsync() {
  return \'Hello Adam!.\';
}
 
const any = testAsync();
 
console.log(any.then((msg)=>{console.log(msg)}));

I am

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