- 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 Answers
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 đšâđ»