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