lets say I have an array: it could look like this at one time:
var fruit = [apple,orange];
or like this:
var fruit = [orange, apple];
These are global variables, equaling some value -
orange and apple
How could I get the name of the variable at index 0 - (fruit[0]
) of fruit
as a string?
Thanks