So I just got to the Algorithm part of Javascript, and read that an array cannot grow. But how are we able to push items into an array? Is this "array" then copied and added additional block of memory?
Asked
Active
Viewed 52 times
2
-
I feel array in js is not fixed . It is dynamic ? – Kick Buttowski Sep 26 '17 at 01:27
-
in JavaScript the Array object is actually not array https://stackoverflow.com/questions/20321047/how-are-javascript-arrays-represented-in-physical-memory – Slai Sep 26 '17 at 02:00
1 Answers
0
An array that cannot grow is called a static array. JavaScript has dynamic arrays, which can be resized. They can grow. What book did you get this information from?

Andrew
- 7,201
- 5
- 25
- 34