Comment faire un tableau associatif/hachage en JavaScript

J'ai besoin de stocker des statistiques à l'aide de JavaScript dans un sens comme je le ferais en C#:

Dictionary<string, int> statistics;

statistics["Foo"] = 10;
statistics["Goo"] = statistics["Goo"] + 1;
statistics.Add("Zoo", 1);

Est-il un Hashtable ou quelque chose comme Dictionary<TKey, TValue> en JavaScript?

Comment pourrais-je stocker des valeurs dans une telle façon?

InformationsquelleAutor George2 | 2009-07-30