Looping Through an Array

This is a companion discussion topic for the original entry at https://www.kirupa.com/javascript/looping_through_array.htm