title: Return all values from array in lowercase using for loop instead of map
body: <pre><code>var sorted = words.map(function(value) {
      return value.toLowerCase();
  }).sort();
  </code></pre>
  
  <p>This code returns all values from words array in lowercase and sorts them, but I wanna do the same with a <code>for</code> loop but I can't.</p>
  
  <p>I tried:</p>
  
  <pre><code>for (var i = 0; i &lt; words.length; i++) {
    sorted = [];
    sorted.push(words[i].toLowerCase());
  };
  </code></pre>