var str = "Your String";
var rev = string.Concat(str.Reverse());
const reverseString = (str) => {
const revArray = [];
const length = str.length - 1;
// Looping from the end
for(let i = length; i >= 0; i--) {
revArray.push(str[i]);
}
// Joining the array elements
return revArray.join('');
}
//if you find this answer is useful ,
//upvote ⇑⇑ , so can the others benefit also . @mohammad alshraideh ( ͡~ ͜ʖ ͡°)
const stringReverse = str => str.split("").reverse().join("");
stringReverse("Welcome to Javascript")
//tpircsavaJ ot emocleW
function reverseString(value){
return value.split('').reverse().join('')
}
String name = "gaurav";
String reversedString = new StringBuilder(name).reverse().toString();
System.out.println(reversedString);