Computer Science, asked by hasnatmirza111p06f0z, 1 year ago

how do i create variable loop in javascript

Answers

Answered by ramesh87901
1
How can I use a for loop to dynamically create variables, and be returned.

function createVariables() { for ( i=0; i<=20; i++ ) { var account = i; return var account + i; } }

hasnatmirza111p06f0z: but i think i ll not work
ramesh87901: oh how
hasnatmirza111p06f0z: i had tried this
ramesh87901: oh kkk
ramesh87901: so check it again
ramesh87901: try agian
Similar questions