Reverse a String should work, but

Reverse a String should work, but


This code works in other editors, but not in FCC.

  function reverseString(str) {

      let arr = [];
      arr = str.split('');
      str = arr.join();

      return str;


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

Link to the challenge:


Not quiet. Commas are added between letters like this.


Hint: You need pass a parameter inside your join method.


Right! Sorry I missed that. Thanks for the comment.