JavaScript Tutorial
Lesson 4 - Arrays
Arrays are like the big brothers of variables. Variables can only store 1 piece of info, but arrays can store a lot of info. They are made by name = ["info1", "info2", "info3", and so on].
It is very helpfuland time-saving compared to variables.
TO get info from an array, we write arrayname[0]
. The first info in an array is called by a 0, the next is a 1, then a 2, and so on.
< Previous-------------------------
Next >