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

16 lines
321 B
JavaScript
Raw Normal View History

2009-12-21 11:41:45 -05:00
(function(){
if (day === "Tuesday") {
eat_breakfast();
} else if (day === "Wednesday") {
go_to_the_park();
} else if (day === "Saturday") {
if (day === bingo_day) {
go_to_bingo();
go_dancing();
}
2009-12-21 11:41:45 -05:00
} else if (day === "Sunday") {
go_to_church();
} else {
go_to_work();
}
})();