I have an array declared like this:
var dict = [];
When I do this:
dict["watch"] = 0;
this expression alerts NaN
alert (dict["watch"]);
I know this is because watch() is a function that is part of the object prototype. Is there anyway around this so I can use any word as a key in my array?
I am using Firefox 3.6.6
You can do the following: