Nothing is wrong with my code. But the lesson just called an Object with several properties (keys with values) an associative array. I had understood arrays were made var arrayName = [arrayValue,arrayValue2];
This is confusing and I feel like it's a bug/typo in the lesson. Maybe just a sentence saying an object with properties can also be called an associative array would help.
Replace this line with your code.