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