let obj = { id: 1, name: 'John', username: 'Doe' } //Using dot notation obj.items = 10; console.log(obj); //Result: //{id: 1, name: 'John', username: 'Doe', items: 10} //Using brackets notation obj['type'] = 'student'; console.log(obj) //Result: //{id: 1, name: 'John', username: 'Doe', items: 10, type: 'student'}