Sometimes you need to use objects for the keys of a dictionary (let’s say, another object). Assume this code: var keys = ; var dic = {}; //add a new key to the dictionary dic] = 'boo'; dic] = 'foo'; Above code yields this result: console.log(dic); //Object {: "foo"} …