JS: when exactly to use a Promise other than for network requests?

前端 未结 0 890
自闭症患者
自闭症患者 2020-12-12 02:22

Are Promises only used when requests are made?

  function sync1() {
      console.log("sync1");
  }
  function sync2() {
      console.log("syn         


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