scrimba
freeCodeCamp algorithm challenges
Reverse a String
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Reverse a String
AboutCommentsNotes
Reverse a String
Expand for more info
index.js
run
preview
console
function reverseString(str) {
return str;
}

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

/*
reverseString("hello") should return a string.
reverseString("hello") should become "olleh".
reverseString("Howdy") should become "ydwoH".
reverseString("Greetings from Earth") should return "htraE morf sgniteerG".
*/
Console
"Hello"
,
index.html
-2:08