Last active
January 28, 2019 05:51
-
-
Save ms314006/2070838410193fb9042f1e2dca9b4863 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
const newPromise = new Promise((resolve, reject)=>{ | |
setTimeout(()=>{resolve('changed')}, 3000) | |
}).then((data)=>{ | |
console.log(data) // 'changed' | |
return 'last changed' | |
}).then((data)=>{ | |
console.log(data) // 'last changed' | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment