title: jQuery, How to print text twice using a for loop?
body: <p>What am I doing wrong here?</p>
  
  <hr>
  
  <p><em>I have the following code:</em></p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;div&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>jQuery:</strong></p>
  
  <pre><code>for(var i = 0; i &lt; 2; i++){
    console.log('test');
    $('div').text('sometext ');
  }
  </code></pre>
  
  <p><strong>My Output:</strong></p>
  
  <blockquote>
    <p>sometext</p>
  </blockquote>
  
  <p><strong>What I expect:</strong></p>
  
  <blockquote>
    <p>sometext sometext</p>
  </blockquote>
  
  <p>Why does this not print the text to the div twice?</p>