var friends = {
name: 'Kat',
age: 16
var objectName = {Kat};

Oops, try again. It looks like you have an error in your code! Check the message for more details: ReferenceError: Kat is not defined

what does it mean by this?


never mind solved it.


The error is that Kat is not defined, as it is a description of the friends object you cannot access it without the object-dot notation, the way you would access the value 'Kat' in your object would be

var objectName = friends.name;

console.log(objectName); ---> Outputs 'Kat'

console.log(friends.name): ---> Also Outputs 'Kat'