- 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 Respostas
0
let string = "This a string" string = string.split(" ").reverse().join(" ") console.log(string)
4th Apr 2022, 7:15 PM
DoffySo
DoffySo - avatar