Day of the week: Difference between revisions

(added coffeescript solutions)
Line 422:
console.log "#{xmas.toDateString()} is a Sunday" if xmas.getDay() is 0</lang>
 
or in a shorter/more convoluted versionway:
 
<lang coffeescript>for year in [2008...2121]
Anonymous user