Twelve Days of Christmas by xulapp

for(i=12;i--;print('On the',a[i]+(8<i?'':'th'),'day of Christmas,\nmy true love sent to me\n'+a.slice(12+i).join(',\n')+(10<i?'':'nd a'),'partridge in a pear tree'+'.!'[+!i]+'\n'))a='twelf0eleven0ten0nin0eigh0seven0six0fif0four0third0second0first0Twelve drummers drumming0Eleven pipers piping0Ten lords a-leaping0Nine ladies dancing0Eight maids a-milking0Seven swans a-swimming0Six geese a-laying0Five golden rings0Four calling birds0Three French hens0Two turtle doves0A'.split(0)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page