Looping through an array in JavaScript natively has been traditionally completed with the following code:

But now ES6 offers an easy to understand native solution with the following code:

As you can see, this is a lot simpler and easy to understand.