Binary digits: Difference between revisions

Content added Content deleted
(→‎{{header|JavaScript}}: + a version of showIntAtBase which uses a specific (Int -> Char) digit function)
Line 1,498: Line 1,498:
9000 -> 10001100101000</pre>
9000 -> 10001100101000</pre>


Or, if we need more flexibility with digits used, we can write a version of showIntAtBase which takes a more specific Int -> Char function as as an argument:
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>(() => {
<lang JavaScript>(() => {