delete not working javascript code example Example: javascript remove object key var obj = {a: 5, b: 3}; delete obj["a"]; console.log(obj); // {b: 3}