- 1
How to I reverse the order of a string?
I need to reverse the order of a given string and output the results 👨💻
2 Respostas
0
let string = "This a string"
string = string.split(" ").reverse().join(" ")
console.log(string)
I need to reverse the order of a given string and output the results 👨💻