Cukup membalikkan string
function reverseString(str) {
return str.split("").reverse().join("");
}
reverseString("hello");
Unsightly Unicorn
function reverseString(str) {
return str.split("").reverse().join("");
}
reverseString("hello");