Q:

how to make fake binary

function fakeBin(x) {
  return x.replace(/\d/g, d => d < 5 ? 0 : 1);
}
// for code wars lol
0

Tags

Related

New to Communities?

Join the community