Javascript/HTML, is it possible to create variable names from a loop
<p>Imagine i had: <code>&lt;div id names&gt;142,140,150&lt;/names&gt;</code></p>

<p>could i then (in Javascript) write a forloop which declares variable names, with these values appended ie</p>

<pre><code>var list = document.getElementById('names').innerHTML.Split(',');

for(i=0; i&lt;list.Length; i++){
    var 'beginning' + list[i];
}
</code></pre>

<p>so i'd essentially want to create:</p>

<pre>
var beginning142
var beginning140
var beginning150
</pre>
