var foo = { someKey: "someValue" };
var bar = "someKey";
How do I get the value "someValue" using foo and bar? OK, the PHP equivalent:
$foo = array("someKey" => "someValue");
$bar = "someKey";
print $foo[$bar]; // someValue
So... I'm looking for the JS equivalent for the above, except I don't wanna use a JS array. Help please?