Domanda di colloquio di Birdeye

An asynchronous function is called for each element of an array using a loop. How would you determine all callbacks have been executed without using Promises?