How is an array different from a standard variable?
|An array is a group of homogenous types of values that are stored in contiguous memory locations.||A variable stores a single value and its memory size depend on the data-type of that variable.|
|An array can store multiple values at a time.||A standard variable can store only a single value at a time.|
var array_name = [n1, n2, n3,...];
where n1, n2, n3 are the elements of the array.