Files
coffeescript/documentation/js/switch.js
Jeremy Ashkenas a2631759c0 CoffeeScript 0.9.3
2010-09-16 00:32:57 -04:00

23 lines
273 B
JavaScript

switch (day) {
case "Mon":
go(work);
break;
case "Tue":
go(relax);
break;
case "Thu":
go(iceFishing);
break;
case "Fri":
case "Sat":
if (day === bingoDay) {
go(bingo);
go(dancing);
}
break;
case "Sun":
go(church);
break;
default:
go(work);
}