How to loop over an array in JavaScript?

How to loop over an array in JavaScript?