0

I am trying to create a variable that is created with another floating variable. Simplified, I need a variable for every value of a list. I have a for loop that runs through a list for the amount of values in it, but I am curious as to how I can actually create a variablevia another floating variable.

Here was my original guess (as far as I know, this worked for me in JQuery):

wordg + n = word3[n]

'n' is an integer that increases every time the for loop runs through so that a new variable can be created as a new value is selected from the list ('word3').

Any ideas?

Zero Piraeus
  • 52,181
  • 26
  • 146
  • 158
CyanCoding
  • 1,000
  • 1
  • 13
  • 32

0 Answers0