Skip to content

Instantly share code, notes, and snippets.

@goodbedford
Created April 2, 2016 14:16
Show Gist options
  • Save goodbedford/d7d9da694737101a5daa98f267dbb6dd to your computer and use it in GitHub Desktop.
Save goodbedford/d7d9da694737101a5daa98f267dbb6dd to your computer and use it in GitHub Desktop.
var numOfCars = 50;
var numOfDrivers = 25;
if (numOfCars) {
console.log("We have", numOfCars, "to race.");
}
if (numOfCars < 50) {
console.log("never called");
} else {
console.log("We have 50 or more cars");
}
if (numOfCars > numOfDrivers) {
console.log("More cars than drivers.");
} else {
console.log("Never called");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment