title: How to use a for loop to console log each item of an array?
body: <p>I'm working on an assignment that experiments with different types of loops. I have to use a for loop to <code>console.log</code> each item in the array <code>cars</code>. I can only use a <code>for</code> loop, no other methods such as <code>for each</code>. What am I missing?</p>
  
  <p>I have tried console logging <code>cars</code> but that logs the entire array a number of times equal to the number of strings in the array, which is obviously not correct. I'm also fairly certain that the <code>.length</code> method used in the <code>for</code> loop is incorrect as well.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const cars = ["ford", "chevrolet", "dodge", "mazda", "fiat"];
  for (let i = 0; i &lt; cars.length; i++) {
    console.log(cars)
  }</code></pre>
  </div>
  </div>
  </p>