Supposte to have an object:
var obj = { 'home':1, 'dog':1, 'house':3 }
and suppose to have a variable
var variable='home';
(I don't know if it is possibile)
Now I need access to object in this way obj.variable so variable=home and it seems to do obj.home. I can do something like this? Anyone can help me?
obj[variable]