how to reverse letters using javascript code example
Example 1: javascript reverse string
function reverseString(str) {
return str.split("").reverse().join("");
}
reverseString("hello");
Example 2: reverse string javascript
const reverse = (str) => str.split("").reverse().join("");