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;