I asked because your code actually ignores the case of n==1. And this is not the only issue, as far as I can see. You need to work more on your solution.
when I try to use the test cases, it gives me this error:
TypeError: ws.replace is not a function
at unbleach
at /home/codewarrior/index.js:20:19
at /home/codewarrior/index.js:25:5
at Object.handleError
EDIT:
Never mind, the issue was resolved. I was returning a number not a string.
I asked because your code actually ignores the case of n==1. And this is not the only issue, as far as I can see. You need to work more on your solution.
<[tab][[tab][]LF]> but was:<[tab][[]LF]>
when I try to use the test cases, it gives me this error:
TypeError: ws.replace is not a function
at unbleach
at /home/codewarrior/index.js:20:19
at /home/codewarrior/index.js:25:5
at Object.handleError
EDIT:
Never mind, the issue was resolved. I was returning a number not a string.