js delete keyword code example
Example 1: nodejs delete object key
delete obj.firstname;
Example 2: js Property Assignment delete
delete objectName['Property Name'];
delete objectName.propName;
Example 3: delete js
let monTableauAssociatif = {
'prenom' : 'Mark' ,
'nom' : 'Zuckerberg' ,
'poste' : 'Pdg de Facebook',
} ;
delete(monTableauAssociatif.poste)
console.log(monTableauAssociatif) ;