Created
April 2, 2016 14:16
-
-
Save goodbedford/d7d9da694737101a5daa98f267dbb6dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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