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