So, imagine you have an associative array in JavaScript as such:
var hashTable = {}; hashTable["red"] = "ff0000"; hashTable["green"] = "00ff00"; hashTable["blue"] = "0000ff";
What happens when you retrieve this value:
var blue = hashTable["blue"];
Is performance similar to performance of hash tables from another language? I mean, is there an actual hash function that is used to locate the property, or is there a circular search such as:
for (var color in hashTable) { if (hashTable.hasOwnProperty(color)) {
Does the implementation impact from browser to browser? I could not find anything related to this particular topic. Thanks.
source share