Suppose you have constructed four promises—doLaundry, doDish…
Suppose you have constructed four promises—doLaundry, doDishes, cleanCounters, and sweepFloors—and stored them in an array assigned to the variable chores. You want to initiate them all at once because they are independent actions. When all four complete successfully, you want to run the takeNap function, but if any of them fails, you want to run the tryAgain function. Which JavaScript statement should you use to accomplish this?