A weird thing with async functions in JavaScript

前端 未结 0 1601
野趣味
野趣味 2020-12-23 11:31
$ cat x.js
async function print() {
    console.log("abc");
}

print();
$ nodejs x.js
abc

How can it be?! print() returns a <

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