Last active
July 4, 2019 09:56
-
-
Save rshivkumar95/b972ebcd9c9341306b2f7ebf3bb94bf7 to your computer and use it in GitHub Desktop.
JS Bin// source https://jsbin.com/kikinoy
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
function promissDemo(){ | |
new Promise(function(resolve, reject){ | |
setTimeout(function(){ | |
console.log('200'); | |
resolve() | |
}, 200); | |
}).then(function(fromResolve){ | |
setTimeout(function(){ | |
console.log('100'); | |
//resolve('hello') | |
}, 100); | |
}); | |
} | |
promissDemo(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment