Javascript String transform(input)
//transform.js//from w w w.j a v a 2s . co m //Override string prototype reverse: String.prototype.transform = function(input) { var output = ""; for (var i = input.length - 1; i >= 0; i--) { output = output + input[i]; } return output; }