title: How to concatenate JavaScript variable in HTML tag
body: <p>I am trying to concatenate a javascript variable into a paragraph tag in html. Don't know how or if this is possible. please help, thanks.</p>
  
  <p>I've tried <code>${timePassed}</code> and <code>+'timePassed'</code></p>
  
  <pre><code>&lt;body&gt;&lt;p&gt;Congratulations! You won! Would you like to restart?&lt;div class="restart"&gt;
      &lt;i class="fa fa-repeat"&gt;&lt;/i&gt;
  &lt;/div&gt;Your time was + 'timePassed'&lt;/p&gt;&lt;/body&gt;
  </code></pre>
  
  <p>It's not implying the variable <code>timePassed</code> into the paragraph tag.</p>