1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/documentation/js/switch.js

18 lines
369 B
JavaScript
Raw Normal View History

2009-12-21 11:41:45 -05:00
(function(){
2010-01-13 23:24:45 -05:00
if (day === "Mon") {
go_to_work();
} else if (day === "Tue") {
2009-12-21 11:41:45 -05:00
go_to_the_park();
2010-01-13 23:24:45 -05:00
} else if (day === "Thu") {
go_ice_fishing();
} else if (day === "Fri" || day === "Sat") {
if (day === bingo_day) {
go_to_bingo();
go_dancing();
}
2010-01-13 23:24:45 -05:00
} else if (day === "Sun") {
2009-12-21 11:41:45 -05:00
go_to_church();
} else {
go_to_work();
}
})();