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

Friday, December 7, 2012

Codecademy: Codeyear Getting the length


//sample solution


//Here's our suits array
var suits = ["hearts","clubs","diamonds","spades"];

//change the if condition to return true if the length of the
//suits array is 4
if (suits.length === 4) {
    console.log("Ready to deal!");
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts