-
-
Save kepta/ce14343b3231607c15208ce725d032c1 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
.then(() => 5.length) // <-- something wrong happenned here | |
.catch(e => { | |
return 5; // <-- making javascript great again | |
}) | |
.then(r => { | |
console.log(r); // 5 | |
}) | |
.catch(e => { | |
console.error(e); // this function will never be called :) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment