title: equivalent of printf in javascript?
body: <p>I was just making a PDFGenerator for my cross platform Phonegap app. </p>
  
  <p>In the report there are fields like Patient name, Patient number, etc. So I thought it'll be a good idea to store these Patient name, Patient number, etc. in variables and change them for every different person and individual. </p>
  
  <p>I don't know how to print variables in between text. Below is my statement for writing a line of text in between which a variable's text value has to be printed out:</p>
  
  <pre><code>loremipsum ='Ambulatory Blood Pressure Report\nPatient name: &lt;heregoesthevalueofpatientname&gt;'
  </code></pre>
  
  <p>Please let me know. </p>