javascript - How to store data underneath an array
迷茫
迷茫 2017-05-17 09:58:36
0
2
665

I would like to ask how the data is stored at the bottom of the array. Please give me an answer. Thank you.

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
洪涛

Contiguous in physical memory.
When the array is created, the length must be specified, then a fixed-size memory will be opened in the memory to store the array.

漂亮男人

I don’t know which language you are asking about
Arrays in JavaScript are of variable length, and the element types can be different, so the bottom layer should be hashTable or something like that.
Arrays in Java are of fixed length, and the element types are also the same. So it is a piece of physically continuous memory.
I am just a novice, waiting for a more professional answer...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template