title: Uncaught SyntaxError: missing ) after argument list
body: <p>I have an array of strings called <code>Events</code> that I'm trying to concatenate to a string and then put it in my html using a jQuery method.</p>
  
  <pre><code>     output+='&lt;li&gt;&lt;a href="#" '+'onmouseup="controlMap('+Events[i]+')"&gt;'+Events[i]+'&lt;/a&gt;&lt;/li&gt;';//gives an error   
   document.getElementById("myUL").innerHTML = output;
  </code></pre>
  
  <p>However, keep geting the following error</p>
  
  <blockquote>
    <p>Uncaught SyntaxError: missing ) after argument list</p>
  </blockquote>
  
  <p>The brackets seem fine to me but I'm not sure about the syntax</p>
  
  <p>ps: the loop works fine when I use this statment :</p>
  
  <pre><code>output+='&lt;li&gt;&lt;a href="#"&gt;'+Events[i]+'&lt;/a&gt;&lt;/li&gt;';
     document.getElementById("myUL").innerHTML = output;
  </code></pre>
  
  <p>but as soon as I replace it with the code up there I start getting the error.</p>