+ 2

Why are JavaScript arrays useful

25th Feb 2018, 5:52 PM
Campbell
Campbell - avatar
2 Answers
+ 12
Because they can store a large amount of data related (and not) among each other, without have to create thousands of variables. Like almost any other programming lang. :3
25th Feb 2018, 5:58 PM
Maz
Maz - avatar
+ 3
To store data temporarily. You do not always know how much data you will need to store so you can't declare variables so you just push them to array and use it later on.
25th Feb 2018, 6:00 PM
Toni Isotalo
Toni Isotalo - avatar