javascript

Arrays

Arrays are collections of data.

Syntax

var passengers = ["Andres", "Paula","Carmenza","Jose"];
passengers[0];  // "Andres"
passengers[2] = "Carmencita";  // ["Andres", "Paula","Carmencita","Jose"]

pop()

This function will take out the last element of the array, continue with our array "passengers" we can do the next :

Pages

Subscribe to RSS - javascript