How can I use js var in html? : <p>I'm actually trying to use a js var in my html code like this :</p>

<hr>

<p>In javascript code :</p>

<pre><code>var test = 'This is a test';
</code></pre>

<p>And in the html :</p>

<pre><code>&lt;p&gt;display var test here&lt;/p&gt;
</code></pre>

<p>How can I display the value of my js var in html like this ?</p>
