deletePropertybeginnerconst obj = { a: 1, b: 2 }
Reflect.deleteProperty(obj, 'a')
console.log(obj) // β { b: 2 }
console.log('a' in obj) // β falseReflect.deleteProperty() deletes a property from an object, returning true on success, just like the delete operator.
Deleting a nonexistent key is not an error β it just returns true.
Challenge: Verify that Reflect.deleteProperty({}, 'nonexistent') returns true.