Answers for "11.reverse a string using str_rev(*str) function"

10

how to reverse a string

function reverseString(str) {
    return str.split("").reverse().join("");
}
reverseString("hello");
Posted by: Guest on May-13-2020
-1

Reverse an string Using Reversed

def reverse(string):
string = "".join(reversed(string))
return string
s = "SoftHunt"
print ("The original string is : ",end="")
print (s)
print ("The reversed string(using reversed) is : ",end="")
print (reverse(s))
Posted by: Guest on April-10-2022

Code answers related to "11.reverse a string using str_rev(*str) function"

Code answers related to "Javascript"

Browse Popular Code Answers by Language