Is it possible to give a user an option which string he can use?
I have an object: myObject which has 3 string
myObject.string1
myObject.string2
myObject.string3
I'm trying to do something like this:
var whichString = "string1";
myObject.whichString
myObject.(whichString)
myObject.[whichString]
None of the above works. Is there a way to do it, please?