+ 1
JS: difference between associative arrays and objects?
I learned about objects before I got to know associative arrays. Both seem to work with the key:value concept but I don't really understand the difference between them. plz help a noob out
1 Respuesta
0
In JavaScript, associative arrays and objects are the same thing. Every object is internally much like a hash table with any number of keys and corresponding values.
Here is a similar question and answer:
https://stackoverflow.com/questions/8067590/associative-array-versus-object-in-javascript