Last active
April 7, 2019 16:07
-
-
Save khaosdoctor/4cd7411332e97c7cfcecf29ec28ed0f2 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) => { | |
setTimeout(() => resolve('yay'), 5000) | |
}) | |
p | |
.then((res) => {}) | |
.catch((rej) => {}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment