This question already has answers here: What is the difference between object keys with quotes and without quotes?
Why does the following work? <something>.stop().animate( { \'top\' : 10 }, 10 ); Whereas this doesn\'t work:
Is it possible to creat an object literal on the fly? Like this: var arr = [ \'one\', \'two\', \'three\' ];
This question already has answers here: How to use a variable for a key in a JavaScript object literal?
STORE = { item : function() { } }; STORE.item.prototype.add = function() { alert(\'test 123\'); }; STORE.item.add();