by Pawan Kumar @jsartisan
What will be the order of the following code:
Promise.resolve(1)
.then(() => 2)
.then(3)
.then((value) => value * 3)
.then(Promise.resolve(4))
.then(console.log)
by Pawan Kumar @jsartisan
What will be the order of the following code:
Promise.resolve(1)
.then(() => 2)
.then(3)
.then((value) => value * 3)
.then(Promise.resolve(4))
.then(console.log)