title: String concatenation within a javascript object
body: <p>I'm sure there is a simple answer to this but I couldn't find it.</p>
  
  <p>I know how to concatenate a normal string in JavaScript but how would I do it within an object?</p>
  
  <p>I require this as I'm reading through an XML file and creating the HTML for a list of links.  Each time I go through the loop I want to create a new <code>&lt;li&gt;</code> containing the link.  How do I get the current value of the string and then append the new link on the end?  Once I've read through the XML I'll append the HTML to the page.</p>
  
  <p>I've tried:</p>
  
  <pre><code>carParks.links = carParks.links + "&lt;li&gt;&lt;a href=\"#\"&gt;car park&lt;/a&gt;&lt;/li&gt;";
  </code></pre>
  
  <p>with no success.</p>
  
  <p>Any help is much appreciated.</p>