Binary digits: Difference between revisions
Content added Content deleted
(→{{header|JavaScript}}: + a version of showIntAtBase which uses a specific (Int -> Char) digit function) |
(→ES6) |
||
Line 1,498:
9000 -> 10001100101000</pre>
Or, if we need more flexibility with the set of digits used, we can write a version of showIntAtBase which takes a more specific Int -> Char function as as an argument:
<lang JavaScript>(() => {
|