constreverseString=(str)=>{const revArray =[];const length = str.length-1;// Looping from the endfor(let i = length; i >=0; i--){
revArray.push(str[i]);}// Joining the array elementsreturn revArray.join('');}//if you find this answer is useful ,//upvote ⇑⇑ , so can the others benefit also . @mohammad alshraideh ( ͡~ ͜ʖ ͡°)
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))
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))
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))
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))
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))
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))
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))
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))
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))
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))
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))
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))