Created
February 17, 2012 02:20
-
-
Save ashryanbeats/1849905 to your computer and use it in GitHub Desktop.
Conditionals in Javascript 5.4
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 food = prompt("What's for dinner?") | |
foodType = food === "taco" ? "Mexican" : "other"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment