Question · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript

Promise.all and Parallelism

Why is Promise.all() faster than sequential await for independent operations?

Answer options

  • Promise.all() uses multiple threads while await only uses one
  • Promise.all() executes all operations in parallel, while sequential await waits for each one in turn
  • There is no difference in speed between these approaches
  • Promise.all() skips error handling, so it's faster

You can check the correct answer by solving this task in the CodeWorlds game.