JavaScript objects are easy to use as hashmaps as they are essentially just a collection of key/value pairs. I am concerned with the memory usage and the time cost of storage and retrieval. I guess that the answer to this differs with the implementations of JavaScript engines. MDN links to the Wikipedia hashmap article but what I don't know is how big the hash table is for an object.
So what I want to know is, how expensive are objects in memory and how often is storage/retrieval an O(1) operation and how often is it an O(n) operation?