Discussion on: Dealing with ".json() is not a function" Error

mohammedasker profile image
Mohammed Asker Author

I love this explanation too!

If I understand it correctly, the object is nothing more than just storing unordered pairs. Key are usually strings, while values can be literally anything. And to use them, I'll have to add key next to a variable which in my post example happens to be items

Basically, object stores key:value and array store object.

If this is how the object works, then I can say with confidence that I know what object is and when to use them. (At least when working on an API)

Thread Thread
dillionmegida profile image
Dillion Megida

Yes, you're right : )