从一道Promise执行顺序的题目看Promise实现

之前在网上看到一道Promise执行顺序的题目——打印以下程序的输出: new Promise(resolve => { console.log(1); resolve(3); }).then(num => { co