What is the difference between this
var person = {
name: "Bob",
age: "99"
};
and this?
var person = {
"name": "Bob",
"age": "99"
};
Or do they mean the same thing? If they do, what if I want the key to be an object? How would I specify the object as the key if name
means "name"
?