+ 2
Why are JavaScript arrays useful
2 Respostas
+ 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
+ 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.