JavaScript program to remove a property from an object:
let obj = {
name: "John",
age: 30,
city: "New York"
};
delete obj.age;
console.log(obj);
JavaScript program to remove a property from an object:
let obj = {
name: "John",
age: 30,
city: "New York"
};
delete obj.age;
console.log(obj);
© 2024 python tutorials. python-tutorials.in