how to reverse a string javascuor code example
Example 1: js revers string fucntion
return str.split("").reverse().join("");
Example 2: javascript reverse string
function reverseString(str) {
return str.split("").reverse().join("");
}
reverseString("hello");