/ Published in: JavaScript
Expand |
Embed | Plain Text
String.prototype.reverse = function(){ splitext = this.split(""); revertext = splitext.reverse(); reversed = revertext.join(""); return reversed; } x = new String('This is a test.'); document.write(x.reverse());
You need to login to post a comment.
