javascript

string reverse

function reverseString(str) {
    return str.split("").reverse().join("");
}
let orginalString = "abdul basith";
let reverseStringValue= reverseString(orginalString);

console.log(reverseStringValue);
Was this helpful?