|
| UNDERSTANDING JAVASCRIPT ARRAYS
In programming, arrays are super variables that can store multiple values unlike a normal variable which can store only one value. Hence, arrays provide a useful purpose in programming. In Javascipt programming, arrays can also be used.
A variable stores only one value (in this case the color yellow):
var color="yellow";
Arrays store many values (in this case three colors red, blue and green):
var color= new Array("red", "blue", "green");
Now Read:
|
|