Possible Duplicate:
How to create object property from variable value in javascript?
How to access property name stored in variable like this?
var obj = {};
obj.foo = 'bar';
var propName = 'foo';
//I want something like this:
console.debug(obj.{propName});
Is there any possibility to do it without using eval()?