title: How to add single quote "'" to javascript string
body: <p>So many related questions out there, but none satisfyingly answered using javascript (no jQuery).  </p>
  
  <p>I wish to add quotes around a variable in a string I'm building.  My string itself should contain single quotes within it like so:</p>
  
  <p><code>'{'a'}'</code></p>
  
  <p>I can get: 
  <code>'{a}'</code></p>
  
  <p>When I try to add single quotes around the key  <code>a</code>  I get:</p>
  
  <p><code>'{\'a\'}'</code></p>
  
  <p>I've used both of the following syntax with the same result. 
   Any suggestions?? </p>
  
  <p><code>concat('\'','a','\'')</code></p>
  
  <p><code>'\''+'a'+'\''</code></p>
  
  <p>See line 39 of this code: <a href="https://repl.it/@mike_butak/LiveForHisPleasureHeReallyIsThere" rel="nofollow noreferrer">https://repl.it/@mike_butak/LiveForHisPleasureHeReallyIsThere</a></p>
  
  <p>Thanks!</p>