Skip to content

Instantly share code, notes, and snippets.

@sairion
Created October 26, 2013 02:51
Show Gist options
  • Select an option

  • Save sairion/7164755 to your computer and use it in GitHub Desktop.

Select an option

Save sairion/7164755 to your computer and use it in GitHub Desktop.
reverseString.js
function reverseString(string){
var length = string.length;
var output = '';
for(var i=1;i<=length;i++){
output = output.concat(string[length-i]);
console.dir(output)
}
return output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment