javascript split reverse join code example
Example 1: javscript .split().reverse.join
"this is a test string".split("").reverse().join("");
Example 2: javascript .split().reverse.join
"this is a test string".split("").reverse().join("");
function reverseString(string){
return string.split("").reverse().join("");}
reverseString("test string");
Example 3: js revers string fucntion
return str.split("").reverse().join("");
Example 4: js how to reverse a string
function reverseString(s){
return s.split("").reverse().join("");
}
reverseString("Hello");