title: Does assigning a new string value create garbage that needs collecting?
body: <p>Consider this javascript code:</p>
  
  <pre><code>var s = "Some string";
  s = "More string";
  </code></pre>
  
  <p>Will the garbage collector (GC) have work to do after this sort of operation?</p>
  
  <p>(I'm wondering whether I should worry about assigning string literals when trying to minimize GC pauses.)</p>
  
  <p><em>e:</em> I'm slightly amused that, although I stated explicitly in my question that I needed to minimize GC, everyone assumed I'm wrong about that.  If one really must know the particular details: I've got a game in javascript  -- it runs fine in Chrome, but in Firefox has semi-frequent pauses, that seem to be due to GC.  (I've even checked with the MemChaser extension for Firefox, and the pauses coincide exactly with garbage collection.)</p>