2

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?

bryanh210
  • 27
  • 2

1 Answers1

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