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.
I've tried ${timePassed}
and +'timePassed'
<body><p>Congratulations! You won! Would you like to restart?<div class="restart">
<i class="fa fa-repeat"></i>
</div>Your time was + 'timePassed'</p></body>
It's not implying the variable timePassed
into the paragraph tag.
`.