JavaScript Object Type
Deletion
We can delete properties using the delete keyword.
const eye = {death: "lighter than a feather",duty: "heavier than a mountain"}console.log(eye.death) // "lighter than a feather"console.log(eye.hasOwnProperty("death")) // truedelete eye.deathconsole.log(eye.death) // undefinedconsole.log(eye.hasOwnProperty("death")) // false