llamatron
09-04-2003, 01:53 AM
I need to fill up an array so that it reads user1, user2, user3 etc.
My code looks like this :
<script>
var myname = new Array(11);
for (i=0; i<11;i++){
myname[i]="user"+[i];
}
</script>
But when i try it I get a javascript error. Can anyone tell me the correct syntax please?
Thanks
My code looks like this :
<script>
var myname = new Array(11);
for (i=0; i<11;i++){
myname[i]="user"+[i];
}
</script>
But when i try it I get a javascript error. Can anyone tell me the correct syntax please?
Thanks