Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to make fake binary

function fakeBin(x) {
  return x.replace(/d/g, d => d < 5 ? 0 : 1);
}
// for code wars lol
 
PREVIOUS NEXT
Tagged: #fake #binary
ADD COMMENT
Topic
Name
2+7 =