pav
6/4/2013 - 7:42 PM

multidimensional_array_add_update_elements

var cards = [ [8, "clubs"], ["A", "hearts"]];
//add a 3rd card to the array: J of spades
cards[2] = ["J","spades"];
//change the rank of the first card to 2
cards[0][0]=2;