Binary digits: Difference between revisions

(→‎{{header|JavaScript}}: + a version of showIntAtBase which uses a specific (Int -> Char) digit function)
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>(() => {
9,659

edits