delete key in dictionary javascript code example Example: javascript delete dict value const o = { lastName: 'foo' } delete o['lastName']