title: NaN in Javascript string concatenation
body: <p>Take this array:</p>
  
  <pre><code>errors [
      "Your name is required.", 
      "An email address is required."
  ]
  </code></pre>
  
  <p>I am trying to iterate it and create a string like:</p>
  
  <pre><code>"Your name is required.\nAn email address is required.\n"
  </code></pre>
  
  <p>Using this code:</p>
  
  <pre><code>var errors = ["Your name is required.","An email address is required."];
  
  if (errors) {
  
      var str = '';
  
      $(errors).each(function(index, error) {
          str =+ error + "\n";
      });
  
      console.log(str); // NaN
  
  }
  </code></pre>
  
  <p>I am getting <code>NaN</code> in the console. Why is this and how do I fix it?</p>
  
  <p>Thanks in advance.</p>