title: Are duplicates of string-constants in JavaScript optimized by the interpreter?
body: <p>Especially when dealing with DOM objects in JavaScript, there are often duplicates of one and the same string.</p>
  
  <p>Should such a string saved in a global variable (or constant) or is JavaScript optimising by itself?</p>