Total File Size
Easy · Async
The starter has a fake async stat(name), like Node's fs.promises.stat: it resolves with an object whose size is the file size in bytes.
Write an async function totalSize(names) that returns the sum of all sizes. Start all stat calls at once and wait for them with Promise.all, instead of waiting for each file one after another.
All files exist. An empty list gives 0.
The driver checkTotalSize(names) is already written. It returns your total and maxRunning, the largest number of stat calls that were running at the same time. When all calls start at once, maxRunning equals the number of names.
Next: Mini Event Emitter