How to create variables dynamiccally in JavaScript

Posted by Roland on Stack Overflow See other posts from Stack Overflow or by Roland
Published on 2010-05-24T09:25:32Z Indexed on 2010/05/24 9:31 UTC
Read the original article Hit count: 191

Filed under:

I'm looking for a way to create variables dynamically in javascript

eg

I have a loop

for (i=0;i<15;i++){
}

now I need to create variables dynamically eg var "a"+i for eavh value in the loop. Is this possible and how?

© Stack Overflow or respective owner

Related posts about JavaScript