Given a string of digits, you should replace any digit below 5 with ‘0’ and any digit 5 and above with ‘1’. Return the resulting string.

```
function fakeBin(x){
for (var i = 0; i < x.length; i++) {
var outputString = "";
if (Number(x[i]) <= 4) {
outputString += "0";
} else if (Number(x[i]) >= 5) {
outputString += "1";
}
return outputString;
} //loop
} //function
```

If given [“4321”], the program will return only the first converted value. In this case, “0”.

How do I make the program continue replacing values with “1” and “0” because once either of the conditions of the if/else statement returns true, the loop finishes.

I may be wrong, but all I am asking if for help, not the answer. Thank You.