Last active
April 7, 2019 16:15
-
-
Save khaosdoctor/5e1709c962e1d995e937916eaab02242 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const p = new Promise((resolve, reject) => { | |
if (Math.random() > 0.5) resolve('yay') | |
reject('no') | |
}) | |
p.then(console.log).catch(console.error) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment