DEV Community

Mwansa Matimba
Mwansa Matimba

Posted on

Are javascript arrays dynamic?

Are javascript arrays dynamic?

Top comments (1)

Collapse
 
miketalbot profile image
Mike Talbot ⭐

Yes, you can add elements to an array using push, splice and unshift. You can remove elements using pop, shift and splice. You can change the length or an array and you can add missing elements by assigning to an index beyond the length of the array.