I created a few functions that contain Promises and tried chaining them. Everything works as expected
function foo1() { return new Promise((resolve, rej