title: Concatenate string through for loop
body: <p>I'm trying to concatenate strings via <code>for loop</code> but i'm receiving <code>NaNs</code>. What i want to achieve is to get one concatenated string <code>Div #0, Div #1, Div #2, Div #3,</code>.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var divLength = $('div').length;
  
  var str = '';
  for(var i=0; i&lt;divLength; i++){
    var str =+ "Div #" + [i] + ", ";
    console.log(str);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div&gt;&lt;/div&gt;
  &lt;div&gt;&lt;/div&gt;
  &lt;div&gt;&lt;/div&gt;
  &lt;div&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>