You can chain the Promises. Inside of .then(), you can return another promise and it'll let you add another .then() underneath. You add a single .catch() at very end, which will work for all the .then() chains.
console.log(data); // logs: longPromise resolved
console.log(data) // logs: shortPromise resolved
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.