Created
September 12, 2013 18:02
-
-
Save eljamez/6541494 to your computer and use it in GitHub Desktop.
CoffeeScript switch example (for quick reference)
This file contains 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
# just copy and paste and you have the quick bones for a CoffeeScript Swtich statement | |
# 'day' is the variable you are checking | |
switch day | |
when "Fri" then 'yeah' | |
else 'dang' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment