How to access a variable that's defined inside a .then() method, outside of the method - JavaScript?

后端 未结 0 636
梦谈多话
梦谈多话 2020-12-23 20:02

In the code/example below, how can I access the likecount variable that\'s defined inside the db.collection()...then() method? I feel like I\'ve tried every solution on the

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