Hi,
// Array erzeugen:
var myArray = [];
// Array mit Zahlen von 1 bis 5 erzeugen
var myArray = [1,2,3,4,5];
// Array an der Stelle 3 auslesen
alert( array[3] ); // gibt 3 aus
Nein, tut’s nicht.
Erstens heißt deine Variable nicht array, sondern myArray – und zweitens steht am Index 3 der Wert 4, nicht 3. Remember: zero-based index …
MfG ChrisB
--
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/