Arrays are exotic objects in JavaScript and they behave differently than ordinary objects. To know more about this behavior, checkout: https://www.youtube.com/watch?v=-5Nmn68xxSU

For useful and amazing frontend and programming tutorials: https://bit.ly/devtools-yt