The Journey of #100DaysOfCode (Mohammad_Kassem)

#100daysofcodechallenge

@Amir_BouGhanem challenged me to participate in this exciting challenge where we talk about new coding concepts that we are learning

Big thank you to @Amir_BouGhanem for this brilliant idea and @Nisrine_bg for encouraging and motivating us with this challenge.

Day1:
I’ve learned about promises in JavaScript. I’ll talk about the difference between promise.all and promise.race.
Promise.all gives an output only if all the promises in the array of promises given to it are resolved(entered success state).
Promise.race gives the output of the first promise that has finished(resolved) from the array of promises.

2 Likes