I am trying to name a variable. I want to use the value of an array location as the name. The reason is that I am loading data at runtime and it is stored in an array. For example, the contents of myfile.txt are:
apple,dog,tree
I would like to name a variable to whatever information is in the first location of the array, and then another variable using the second location.
Is this possible?
Javascript only please. I can barely script with that, let alone learning another language.
Thanks in advance.