JavaScript · Senior · Question 6 of 75

What does for await...of do?

Explanation

It works with objects that have Symbol.asyncIterator: async generators, streams (ReadableStream), API pagination. Iterations run sequentially. To process an array of promises in parallel, use Promise.all.

Further reading

Problem with a question

JavaScript · Senior · question 6

Test yourself

Take the JavaScript · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz