Possible Duplicate:
What is the difference between object keys with quotes and without quotes?
I mostly know JavaScript from using it, but there's something I don't understand yet.
What's the difference between these two object literals:
var obj1 = {
myProp: '123'
};
var obj2 = {
'myProp': '123'
};
Are they just 'synonyms', or is there a subtle difference?
Thanks!