how to delete the key-value in object in js code example
Example: javascript delete key from object
let person = {
firstname: 'John',
lastname: 'Doe'
}
console.log(person.firstname);
// expected output: "John"
delete person.firstname;
console.log(person.firstname);
// expected output: undefined