DEV Community

Discussion on: JavaScript Arrays vs Objects

Collapse
 
izio38 profile image
izio38

First, thanks for sharing things.
But, be precise, especially when you target beginners.

element names : keys, or accessor

There is no such undefined size. The size is defined and it's 0.

Variable pet is an array, and you talk about object.
Also, you are assigning a property on person and not on pet

Collapse
 
acesif profile image
Asif Zubayer Palak

Thank you for your valuable input, I'll update the article with your suggestions in mind <3