Skip to content

Files

Latest commit

 

History

History
15 lines (11 loc) · 1.52 KB

File metadata and controls

15 lines (11 loc) · 1.52 KB

Promise Chain Output easy #javascript #promises

by Pawan Kumar @jsartisan

Take the Challenge

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)

Back Share your Solutions Check out Solutions