Dynamically creating keys in a JavaScript associative array
Somehow all examples, while work well, are overcomplicated: They use new Array(), which is an overkill (and an overhead) for a simple associative array (AKA dictionary). The better ones use new Object(). It works fine, but why all this extra typing? This question is tagged “beginner”, so let’s make it simple. The über-simple way to … Read more