RosettaCodeData/Task/Binary_digits/CoffeeScript/binary_digits.coffee
Ingy döt Net 80737d5a6a new tasks
2013-04-09 00:46:50 -07:00

4 lines
89 B
CoffeeScript

binary = (n) ->
new Number(n).toString(2)
console.log binary n for n in [5, 50, 9000]