Promise.then(()=>function()) vs. Promise.then(function)

前端 未结 0 1275
北海茫月
北海茫月 2020-12-18 13:36

I\'m learning about Promise in Javascript and I can\'t figure out why these are the same:

let fifteen = Promise.resolve(15);
fifteen.then(value => console.         


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