write a function in javascript that reverses a string code example
Example 1: javscript .split().reverse.join
"this is a test string".split("").reverse().join("");
Example 2: javascript reverse a string
function reverseString(s){
return s.split("").reverse().join("");
}
reverseString("Hello");//"olleH"