Convert a Classic For Loop to a For...of Loop

Refactor the code below to use a for...of loop instead of a traditional for loop, so that it works the same way. This makes your code cleaner and more modern!
JavaScript
Console