Quotes help make search much faster. Example: "Practice Makes Perfect"

Friday, December 7, 2012

Codecademy: Codeyear Change-up


//sample solution


var cards = [ [8, "clubs"], ["A", "hearts"]];

//add a 3rd card to the array: J of spades
cards.push([3,"spades"]);
//test
console.log(cards);
//change the rank of the first card to 2
cards[0][0]=2;
//test
console.log(cards);

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts