javascript delete variable code example
Example 1: how to delete a variable in js
hello = document.getElementById("Hello")
delete hello
Example 2: delete js
let monTableauAssociatif = {
'prenom' : 'Mark' ,
'nom' : 'Zuckerberg' ,
'poste' : 'Pdg de Facebook',
} ;
delete(monTableauAssociatif.poste)
console.log(monTableauAssociatif) ;