
Iterators let you define how objects are looped over with for...of. Understanding this unlocks powerful patterns like generators and lazy evaluation.
Range class that represents a number rangeSymbol.iterator so it works with for...ofnew Range(1, 5) should iterate: 1, 2, 3, 4, 5toArray() method for convenienceSubmit your code to see test results