// accessing method and property const person = { name: 'John', greet: function() { console.log('hello'); } }; // accessing property person.name; // John // accessing method person.greet(); // hello