Build a String Inverter - Build a String Inverter

Tell us what’s happening:

My code is able to pass test cases 3 to 6, but I’m not sure why it’s not passing for #2 (reverseString should take a string as an argument)

Your code so far

const reverseString = (stringParam) => {
  return stringParam.split("").reverse().join("");
};

console.log(reverseString("Howdy"));

Your browser information:

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

Challenge Information:

Build a String Inverter - Build a String Inverter

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-reverse-a-string/a202eed8fc186c8434cb6d61.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hi @neahpanilag

If an arrow function does not work, try a regular function.

Happy coding