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

Monday, December 3, 2012

Codecademy: Codeyear Write your own switch statement


//sample solution


var born = prompt("What country were you born in?")
var result;

switch(born){
case "USA":
result = "Born in the USA";
break;
default:
result = "Born outside the USA";  
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts