title: JS : console.log displays "undefined" in the end of an array of objects
body: <p>I wanted to display a simple array's items on the console, using foreach. It dispalys all the items(it's OK), but it displays &quot;cars : undefined&quot; at the end.
  I dont want to display &quot;cars : undefined&quot;, but only the 3 items of the array.
  How to do ?</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>var cars = [{
      year: 2011,
      type: "Volvo"
  }, {
      year: 1999,
      type: "Volvo"
  }, {
      year: 2003,
      type: "Volvo"
  }];
  console.log("1");
  
  console.log("cars : " + cars.forEach(a =&gt; console.log(a)));
  console.log("2");</code></pre>
  </div>
  </div>
  </p>