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: 625 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » Declaring Variables using for loop in javascript
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.06 seconds on 02/05/2025 at 08:55:11