split reverse js code example
Example 1: javscript .split().reverse.join
"this is a test string".split("").reverse().join("");
Example 2: javascript reverse string
function reverseString(str) {
return str.split("").reverse().join("");
}
reverseString("hello");