Something wrong with the tests

https://www.freecodecamp.org/challenges/reverse-a-string
this code:
const reverseString = str => str === '' ? '' : reverseString(str.slice(1)) + str.charAt(0);
wouldn’t pass the tests. Any reason why?

Works for me - did you reload the page?

1 Like

Yeah, it worked after reloading. Magic!