title: JavaScript equivalent of Python's format() function?
body: <p>Python has this beautiful function to turn this:</p>
  
  <pre><code>bar1 = 'foobar'
  bar2 = 'jumped'
  bar3 = 'dog'
  
  foo = 'The lazy ' + bar3 + ' ' + bar2 ' over the ' + bar1
  # The lazy dog jumped over the foobar
  </code></pre>
  
  <p>Into this:</p>
  
  <pre><code>bar1 = 'foobar'
  bar2 = 'jumped'
  bar3 = 'dog'
  
  foo = 'The lazy {} {} over the {}'.format(bar3, bar2, bar1)
  # The lazy dog jumped over the foobar
  </code></pre>
  
  <p>Does JavaScript have such a function? If not, how would I create one which follows the same syntax as Python's implementation?</p>