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?
Similar Posts
- Create random string in Javascript
- indexOf and lastIndexOf a string in javascript
- Remove last character of a string in Javascript
- Get first 10 words from string javascript
- Find the shortest string in array
- Remove new line separator from start and end positions of string in Javascript
- Calculate the frequency of characters in a string using Javascript