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