John Lindquist: When you create an array of Promises -- we'll call this promises, and create two promises, Promise.resolve(1) and Promise.resolve(2) inside of an async function, which we'll name start() -- you can use a for of loop just like you would with any other iterable. The promises is an iterable, so say promise of promises. Then we can console.log(promise).
We'll go ahead and start our program, save here. You can see we get two Promises logged out in the console. Because we marked our function as async, you can add the additional await keyword making this a for await of loop, which will treat this as an iterator that contains promises. When I hit save here, you can see that it awaits each value coming through.
If I create a third promise, we'll say new Promise(), and we'll create a function which takes our resolve, and we'll setTimeout to resolve(3) after three seconds. I'll hit save here. You can see 1, 2, and then after three seconds, 3.