How could I get a variable/property from a string in JavaScript?
The string obj.val
returns the value of obj.val
. Is adding \"
to the beginning and end of the string enough?
Thanks! :)
Unlike the post some of you have suggested, the values I want don't have string keys.