Arrays are a common structure in many languages, Its a sequence of values that you wanna access in an indexed based way. Let’s define an array.
But what’s the secret. Let’s raise the curtains.
What if I say to calculate the length of the array.
What if I do myArray. We get 100.
Let’s see some more magic. For the above array of length 3 what if I do,
You can also do,
Again, length will be same 401. And, do not worry about index like objects property names can also be of string type.