Skip to content

Files

Latest commit

 

History

History

348-promise-resolution-order

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Promise Resolution Order easy #javascript #promises

by Pawan Kumar @jsartisan

Take the Challenge

What will be the order of following code:

new Promise((resolve, reject) => {
  resolve(1)
  resolve(2)
  reject('error')
}).then((value) => {
  console.log(value)
}, (error) => {
  console.log('error')
})

Back Share your Solutions Check out Solutions