title: Why map doesn't work on new Array in js
body: <p>Why does the code bellow returns an array of undefined values and I don't see any logs?</p>
  
  <pre><code>var arr = new Array(10);
  arr = arr.map(function () {
      console.log('kapa');
      return 1;
  });
  console.log(arr);
  </code></pre>