Skip to content

Instantly share code, notes, and snippets.

@relekang
Created May 12, 2014 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save relekang/d013a4e0ee7b8ac5548c to your computer and use it in GitHub Desktop.
Save relekang/d013a4e0ee7b8ac5548c to your computer and use it in GitHub Desktop.

If-statements

if 'chocolate' in apartment
  console.log("Awesome!")
else
  console.log("Too bad for you.")

if numberOfIceCreamsToday == 0
  console.log("Go eat ice-cream")
elif numberOfIceCreamsToday > 2
  console.log("Good!")

  if numberOfIceCreamsToday > 5
    console.log("Serously?")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment