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

Monday, December 3, 2012

Codecademy: Codeyear Checking for two conditions


//sample solution


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

if (yourName.length>0 && gender.length>0) {
  result = "Thanks";
} else {
  result = "Please make sure both yourName and gender are filled in.";
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts