Junior — Senior
Sequential execution of asynchronous functions
livecode
Task condition
Write a function that takes an array of functions, each returning a promise, and ensures their sequential execution – the next function should only be invoked after the previous promise has been resolved (or rejected).