function to reverse the letters in a word javascript code example
Example: js how to 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"