Basic Algorithm Scripting - Reverse a String

Tell us what’s happening:
I feel like I have to look at solutions all the time, while I do try to learn from what they did and the difference between mine. I still walk away feeling like I didn’t properly learn…
I have no idea what to do here please help

Your code so far

function reverseString(str) {
  return str;
}

reverseString("hello");

Your browser information:

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

Challenge: Basic Algorithm Scripting - Reverse a String

Link to the challenge:

I wouldn’t look at the solutions at all. Instead, ask questions here on the forum when you get stuck.

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