Basic Algorithm Scripting - Reverse a String

Tell us what’s happening:
Describe your issue in detail here.

This is the second challenge in a row that doesn’t pass, even though my console.log statements show my code produces the required output. Am I doing something wrong? Am I missing something? Or does FCC have issues?

  **Your code so far**
function reverseString(str) {

let splitHello = str.split("");

let reverseHello = splitHello.reverse();

let joinLetters = reverseHello.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/ Safari/537.36

Challenge: Basic Algorithm Scripting - Reverse a String

Link to the challenge:

I have never been so happy to make a mistake. Thanks for the hint, got it to pass.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.