title: How to insert variables in JavaScript strings?
body: <p>What's the best way to do insert variables in a string in JavaScript? I'm guessing it's not this:</p>
  
  <pre><code>var coordinates = "x: " + x + ", y: " + y;
  </code></pre>
  
  <p>In Java, <code>String</code>s are immutable and doing something like the above would unnecessarily create and throw away <code>String</code>s. Ruby is similar and has a nice way of doing the above:</p>
  
  <pre><code>coordinates = "x: #{x}, y: #{y}"
  </code></pre>
  
  <p>Does something similar exist for JavaScript?</p>