Skip to content

Instantly share code, notes, and snippets.

@ashryanbeats
Created February 17, 2012 02:20
Show Gist options
  • Save ashryanbeats/1849905 to your computer and use it in GitHub Desktop.
Save ashryanbeats/1849905 to your computer and use it in GitHub Desktop.
Conditionals in Javascript 5.4
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