This kata seems to not work with .replace methods in JavaScript. I got solution right, and it works fine in node or devtools, but fails here with type error "replaceAll is not a function", because it gets confused with braces in quotes: replaceAll( word[i], ")" ). Or it simply do not accept solution with replace method. Tests are not parsing code in a right way.
replaceAll
is only available fromnode
v15. Codewars has onlynode
versions up to v14.This kata seems to not work with .replace methods in JavaScript. I got solution right, and it works fine in node or devtools, but fails here with type error "replaceAll is not a function", because it gets confused with braces in quotes: replaceAll( word[i], ")" ). Or it simply do not accept solution with replace method. Tests are not parsing code in a right way.