setting javascript variable name from a variable
<p>Hi is it possible to set a <code>var</code> name from another variable?</p>

<p>Such as I have the <code>var test</code> with different numbers each time the function is called so I want the number to be a variable name e.g. var test contains ' 1 ' so the new variable would be <code>var 1</code>. I then want to add a word to this number "word" to make the new variable become <code>var 1word</code>.</p>

<pre><code>var newNumber = 1;
var newNumber += 'word';
       ^ becomes ' 1 '
the new var name becomes ' 1word '
</code></pre>

<p>edit:</p>

<pre><code>function getNumber(newNumber) //  Gets a number, for this example say its the number '1' 
    {

        var newNumber += "something";  //The new varaible will be named "1something" (something can be any word)

    }
</code></pre>

<p>Hope I haven't made it sound too confusing, thanks.</p>
