You refer to an array element by referring to the index number. This statement accesses the value of the first element in cars:
var name = cars[0];
This statement modifies the first element in cars:
cars[0] = "Opel";
Array indexes start with 0, so the first element in an array is [0] while the second is [1].