Posted By

jatkins on 07/20/11


Tagged

String reverse manipulation


Versions (?)

reverseString


 / Published in: JavaScript
 

Released into the public domain.

  1. function reverseString(strToReverse) {
  2. reversedString = '';
  3. for(var i=strToReverse.length-1;i>=0;i--)
  4. reversedString += strToReverse[i];
  5. return reversedString;
  6. }

Report this snippet  

You need to login to post a comment.