-
-
Save kepta/5a8152563718ff58dc8e5387ece3e156 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rejProm = new Promise((res, reject) => reject(5)); | |
rejProm.catch(e => console.log(e)) // 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment