Complete the code to add a new property age with value 25 to the object.
const person = { name: 'Alice' };
person.[1] = 25;person.age = 25; adds the property age.Complete the code to remove the property color from the object.
const car = { brand: 'Toyota', color: 'red' };
delete car.[1];null or undefined instead of deleting.delete operator removes a property from an object. Here, delete car.color; removes the color property.Fix the error in the code to correctly add a property height with value 180.
const obj = {};
obj[1] = 180;obj.height = 180; works correctly.Fill both blanks to add a property score with value 100 and then remove it.
const game = {};
game[1] = 100;
delete game[2];game.score = 100;. To delete it using bracket notation: delete game['score'];.Fill all three blanks to add a property name with value 'Bob', update it to 'Robert', and then remove it.
const user = {};
user[1] = 'Bob';
user[2] = 'Robert';
delete user[3];user.name = 'Bob'; user.name = 'Robert';. Remove it using bracket notation: delete user['name'];.