Promise.then(), how it works and what it returns?
This video covers what is
then method of a
Promise, when to use it and what values it can return.
let p = Promise.resolve('hey bonsaii')p.then(data => console.log(data))p.then(data => data.length)