4 lines
89 B
CoffeeScript
4 lines
89 B
CoffeeScript
binary = (n) ->
|
|
new Number(n).toString(2)
|
|
|
|
console.log binary n for n in [5, 50, 9000]
|