score:1

Accepted answer

This is just a display in the console thing - the array itself isn't segmented like that. It's done for convenience (I think) so you can inspect different parts of a large array more easily.

You can see it in action by opening the console and doing:

Array(1000).fill(0)

and then you can expand it out and see the [0 ... 99], [100 ... 199] etc.


Related Query