Node.js I keep getting Promise { } when I make an API call then try to save results to variable and then log to console

后端 未结 0 350
别跟我提以往
别跟我提以往 2020-12-14 00:41

I create a function asyncFunc which makes an asynchronous request. How can I return the response/result from asyncFunc and then save the result into a variable to use later

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