Search code snippets, questions, articles...

string reverse

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

console.log(reverseStringValue);
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet