0
   

Declaring Variables using for loop in javascript

 
 
Reply Tue 27 May, 2014 06:50 am
Wonder if some one could help me if there is a method to declare variables suffixed with a counter of a for loop, something like this
for (i=1;i<10;i++)
{
var image(i) = new Image();
// there will be an array to hold these variables
image(i).scr="text"
// there will be an array to hold these url
}


  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 572 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » Declaring Variables using for loop in javascript
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 05/16/2024 at 09:12:18