13.
When you log person to the console, what is the output?
const name = 'John';
const age = 25;
const person = { name, age };
console.log(person);
{person: {name: "John", age: 25}}
{person: "John", person: 25}}
{name: "John", age: 25}
{{name: "John", age: 25}}
Correct: C
The object 'person' will have the name property set to "John" and the age property set to 25 {name: "John", age: 25} . This is because the object literal enhancement allows us to put values back into an object by using the shorthand notation when the variable name matches the property name.