Associative Arrays in JavaScript

JavaScript doesn’t support true associative arrays, but because data types are defined as objects, the common syntax works. This is a bad practice, though. You should just create a new object.

Leave a Reply

Your email address will not be published. Required fields are marked *