how can you print the a string backwards "reverse" javascript code example
Example: javascript reverse a string
function reverseString(s){
return s.split("").reverse().join("");
}
reverseString("Hello");//"olleH"
function reverseString(s){
return s.split("").reverse().join("");
}
reverseString("Hello");//"olleH"