+ 1

about array

am always confusion

1st Oct 2016, 6:25 PM
Srikanth Puli
Srikanth Puli - avatar
2 Respuestas
+ 3
Arrays hold several values (usually of the same type, but that's not the case in javascript), accessible by their index number. Indexing starts at 0 (so if arr is an array, arr[0] is the first element, arr[1] the second, etc.).
1st Oct 2016, 7:47 PM
Zen
Zen - avatar
+ 1
contrary to a variable which holds one item at a time, an array is like a container which can hold several items.
4th Oct 2016, 3:44 AM
lenimbugua
lenimbugua - avatar