for, for…of, forEach, and the functional methods.
forwhen you need the index or want to breakfor…offor clean value iterationforEachruns a callback (can't break)map/filter/reducefor transformations
See examples/.
Sum only the even numbers in an array two different ways.