matthewglassman
6/6/2018 - 9:07 PM

Reverse a String

How to reverse a string.

function ReverseString(teststring) {
  myNewString = teststring.split('');
  myNewString.reverse();
  myReverseString = myNewString.join('');
  myReverseString = myReverseString.replace(/,/g,"");
  return myReverseString;
};