SyntaxFix
Write A Post
Hire A Developer
Questions
Follow this, it can be like what you are looking:
var obj = {_x000D_ Objone: 'one',_x000D_ Objtwo: 'two'_x000D_ };_x000D_ _x000D_ var key = "Objone";_x000D_ delete obj[key];_x000D_ console.log(obj); // prints { "objtwo": two}