title: Why is += used in this while loop?
body: <p>This is probably really simple, but not sure why += is used in this loop. My thinking is that initially msg is empty or 0 and then next loop msg is equal to whatever was evaluated before. Would that then mean msg(the RHS one) has a new value and is then added to incremented i during next iteration of loop?</p>
  
  <pre><code>var i = 1;
  var msg = '';
  
  while (i &lt; 10) {
      msg += i + ' x 5 = ' + (i * 5) + '&lt;br/&gt;';
      i++;
  }
  </code></pre>