title: Converting a for loop to forEach not working
body: <p>I have an object with some propreties:</p>
  
  <pre><code>const carOptions = {
    mazda: 25000,  
    tesla: 85000,
    bmw: 100000
  }
  </code></pre>
  
  <p>I would like to convert a <code>for</code> loop …</p>
  
  <pre><code>for (let i = 0; i &lt; cars.length; i++) {
    if (cars[i].checked) {
      return carOptions[cars[i].id]
    }
  }
  …
  </code></pre>
  
  <p>… To <code>.forEach</code> but this code isn't working:</p>
  
  <pre><code>cars.forEach(function(cars)) {
    if (cars.checked) {
      return carOptions[cars.id]
    }
  }
  …
  </code></pre>
  
  <p>What am I missing?</p>