/* 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". */
1
2
3
4
5
6
7
8
9
10
11
12
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".