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

Monday, December 3, 2012

Codecademy: Codeyear Checking a condition for at least one result


//sample solution


var yourName = "Pam";
var gender = "female";

// don't forget to use the || operator
if ( gender === "male" || gender === "female" ) {
  result = true;
} else {
  result = false;
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts