title: How do I solve the problem: Uncaught SyntaxError: missing ) after argument list
body: <p>So i am basically trying to make a book marker application using vanilla JS which stores the websites entered as a bookmark and can delete the bookmark when the delete icon is pressed. I am trying to return the site url value to the delete function using the onclick() in HTML. However, I am getting the following error when I click the delete icon </p>
  
  <blockquote>
    <p>Uncaught SyntaxError: missing ) after argument list.</p>
  </blockquote>
  
  <p>I am not sure what the problem is.</p>
  
  <p>BMtoDisp is the array that hold the JSON object which contains the websites stored. 
  siteName contains the name of the site from the JSON file
  siteURL contains the site URL from the JSON file
  dBM is a div that displays the bookmarks after being stored.
  delBM() is the function to which i want to return the siteURL and does the delete action when the Trash Can (fontawesome) icon is clicked.</p>
  
  <pre><code>for(var i = 0; i &lt; BMtoDisp.length; i++)
  {
      var siteName = BMtoDisp[i].sname;
      var siteURL = BMtoDisp[i].surl;
      dBM.innerHTML +="&lt;div id='newElement'&gt;" + '&lt;h2&gt;' + siteName + '&lt;/h2&gt;' + '&lt;a target="_blank" href=" '+siteURL+'"&gt;' + siteURL + '&lt;/a&gt;' + '&lt;a onclick="delBM('+siteURL+')"&gt;&lt;i class="fas fa-trash-alt"&gt;&lt;/i&gt;&lt;a/&gt;';
  }
  </code></pre>