AliasT
8/7/2019 - 3:53 AM

promise.js

Promise.resolve().then(() => Promise.reject(3)).catch( (e) => console.log(e + 3))
Promise.resolve().then(() => Promise.reject(3), (e) => console.log(e + 3))