const input = [...Array(1000).keys()];
Initializing...
let sum = 0; for (const x of input) { sum += x; }
let sum = 0; for await (const x of input) { sum += x; }
You can edit these tests or add more tests to this page by appending /edit to the URL.