title: Concatenate Strings of Custom Object Array in JavaScript
body: <p>I am communicating with a web service which returns a response. The response can have errors collection. I need to iterate through the collection and concatenate all the reasons. Here is the code: </p>
  
  <pre><code>var errorText = "";
  
  for ( var i = 0; i &lt; response.errors.count; i++ ) {
      errorText += response.errors[i].reason; 
  }
  </code></pre>
  
  <p>This works! But I am thinking there has to be a better compact way. </p>