Tell us what’s happening:
Describe your issue in detail here.
I understand that my answer passes but is this actually what they are asking for? I’m going over this algorithm course and I’m just sort of googling my way through. I guess maybe I have a vague understanding of what an algorithm actually us.
Your code so far
function reverseString(str) {
str = str.split('').reverse().toString().replaceAll(',', '')
return str;
}
console.log(reverseString("hello"));
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36 Edg/106.0.1370.52
Challenge: Basic Algorithm Scripting - Reverse a String
Link to the challenge: