Files
coffeescript/documentation/js/switch.js
2009-12-23 20:48:55 -05:00

16 lines
321 B
JavaScript

(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();
}
} else if (day === "Sunday") {
go_to_church();
} else {
go_to_work();
}
})();