yield keyword and
function*() syntax together make JS Generators.
return [1, 3, 5, 7];
var collection = collection_name();
for(var iii = 0; iii < collection.length; iii++)
Here is how you can do the same using Generators
for(var iii of collection_name())
for of construct needs for iterating a collection.