- 1

How to I reverse the order of a string?

I need to reverse the order of a given string and output the results đŸ‘šâ€đŸ’»

3rd Apr 2022, 5:03 AM
VICTOR MATHABELA
VICTOR MATHABELA - avatar
2 Answers
0
let string = "This a string" string = string.split(" ").reverse().join(" ") console.log(string)
4th Apr 2022, 7:15 PM
DoffySo
DoffySo - avatar