Efficiently adding child nodes
<p>I need to add <code>x</code> children to a div.  So far I'm just using:</p>

<pre><code>for (var i = 0; i &lt; x; i++) { 
    element.appendChild(document.createElement(‘div’));
}
</code></pre>

<p>But I feel like creating the same empty node every time is kinda redundant.  However...</p>

<pre><code>var b = document.createElement('div');
for (var i = 0; i &lt; x; i++) { 
    element.appendChild(b);
}
</code></pre>

<p>Only seems to create a single child.</p>
