title: What is the difference between ' and " in JavaScript?
body: <p>I saw <a href="https://stackoverflow.com/questions/943795/difference-between-and">this question</a> and I am wondering about the same thing in JavaScript.</p>
  
  <p>If you use the character ' or the character " when making strings in JavaScript, the application seems to behave the same. So what is the difference between these two characters?</p>
  
  <p>The only advantage I have seen in using ' to build strings is that I can do stuff like:</p>
  
  <pre><code>var toAppend = '&lt;div id="myDiv1"&gt;&lt;/div&gt;';
  </code></pre>
  
  <p>Instead of:</p>
  
  <pre><code>var toAppend = "&lt;div id=\"myDiv1\"&gt;&lt;/div&gt;";
  </code></pre>
  
  <p>Is there any significant difference between them that I should be aware of?</p>