You can create a dictionary by writing...
var myDictionary = {};Then you add an object to this dictionary with key & value pair...
myDictionary["key"] = "value";
Check if we already has an object with specific key in the dictionary...
if ("key" in myDictionary) { /* do something */ }Remove object with specific key from the dictionary...
delete myDictionary["key"];
Advanced Web Applications With Object-Oriented JavaScriptChecking if an associative array key exists in JavascriptHow do I remove objects from a javascript associative array