title: iterating through words in a string
body: <p>I'm trying to abbreviate all words in a given string with the code below, however I can only get it to alter the first word of every string. What am I doing wrong?</p>
  
  <pre><code>function abbreviate(string) {
    var words = string.split(" ");
    for (var i = 0; i &lt; words.length; i += 1) {
      var count = words[i].length - 2;
      var last = words[i].charAt(words[i].length - 1);
      return words[i][0] + count + last;
    }
  }
  </code></pre>