How do i declare and use dynamic variables in javascript?
<p>Suppose i need to declare a javascript variable based on a counter how do i do so?</p>

<p>var pageNumber = 1;
var "text"+pageNumber;</p>

<p>The above code does not work?</p>

<p>Could you please help?
Thanks!</p>
