+ 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

22nd Jul 2019, 2:42 PM
Otto Liebermann
Otto Liebermann - avatar
1 Antwort
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
24th Jul 2019, 5:06 PM
Josh Greig
Josh Greig - avatar