How do i create variable names using contents of an array using javascript
<p>i have created an array,</p>

<pre><code>var myBuildingName=['A1','A2','A3','A4'];
</code></pre>

<p>where A1,A2,A3 and A4 are the names obtained through user input.
i now want to create arrays that have names A1,A2,A3 and A4.</p>

<p>i have tried using</p>

<pre><code>for(var i=0;i&lt;myBuildingName.length;i++)
{
   var myBuildingName[i]=[];
}
</code></pre>

<p>but it does not work...</p>

<p>please help.</p>
