Skip to content

Instantly share code, notes, and snippets.

@jchris
Created December 20, 2010 21:17
Show Gist options
  • Save jchris/749006 to your computer and use it in GitHub Desktop.
Save jchris/749006 to your computer and use it in GitHub Desktop.
teaching amysue javascript
rainPain = function(temp, cip) {
if (temp < 39) {
console.log ("too cold!")
} else if (temp<80 && cip){
console.log("ouch")
} else {
console.log("time to walk the dogs")
}
}
rainPain(75, true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment