i.e. is it possible to do this:
var fruit = "banana";
var x = {
"app" + "le" : 5, // "apple" : 5
function(){return "orange"} : 8, // "orange" : 8
"" + fruit : 3 // "banana" : 3
};
No, you can't, you need to feed it after the first initialization :
var myKeyName = "bar";
x[myKeyName] = "foo";