Skip to content

Instantly share code, notes, and snippets.

@edrdesigner
Created March 22, 2017 12:42
Show Gist options
  • Save edrdesigner/fd75a9d5f9e0e694f4b5594b0b12f3e0 to your computer and use it in GitHub Desktop.
Save edrdesigner/fd75a9d5f9e0e694f4b5594b0b12f3e0 to your computer and use it in GitHub Desktop.
new Promise(function(resolve,reject){
setTimeout(function(){ console.log('1500'); resolve('ok1') },1500)
}).then(
function(result) {
new Promise(function(resolve,reject){
setTimeout(function(){ console.log('1500'); resolve('ok2') },1500)
}).then(function(result){
console.log(result);
new Promise(function(resolve,reject){
setTimeout(function(){ console.log('6500'); resolve('ok3') },6500)
}).then(function(result){
console.log('ok nivel 4'+ result)
},function (dismiss){})
},function (dismiss){})
}, function (dismiss) {}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment