Peter Michaux wrote:
var arr = {};
arr['a'] = 1000;
arr.b = 2000;
arr[c] = 3000;
It should be pointed out (to the OP) that despite the chosen identifier
`arr', the referenced object is _not_ an "associative array" or a "hash" as
ECMAScript implementations at least until Edition 3 have no built-in concept
of this. `arr' refers to an Object object with user-defined properties.
`[...]' and `.' merely denote property accesses. `a', `b' and the value of
c are _not_ "keys", but they are property names.
PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>