Como reverter uma string
function reverseString(str) {
return str.split("").reverse().join("");
}
reverseString("hello");
Unsightly Unicorn
function reverseString(str) {
return str.split("").reverse().join("");
}
reverseString("hello");
def reverse(s):
reversed = ""
count = len(s)
while count > 0:
reversed += s[count - 1]
count = count - 1
return reversed
s = "interview"
print(reverse(s))