Multiply a string in JS : <p>i want to display a string as many times I have a generated variable. Therefore I'd like to do something like that, which doesn't work</p>

<pre><code>var shower_total = 7; // this gets generated, but for simplification... 
var uhrzeit = "&lt;p class='clock_item'&gt;Foo&lt;/p&gt;";
document.getElementById("uhrzeit_block").innerHTML =5*uhrzeit;
</code></pre>

<p>That's why I tried looping it but that doesn't work neither</p>

<pre><code>document.getElementById("uhrzeit_block").innerHTML = 
 for(b=0, b &lt;= shower_total; b++){
   uhrzeit
};
</code></pre>

<p>What do I do wrong or what would be a possible - beginner-compatible - solution. Thanks!</p>
