AS String question
AS String question
- Started
- Last post
- 3 Responses
- monNom
is there a function/method to reverese a string?
say i want:
0123456789
to be:
9876543210???
I don't really want to turn it to an array BTW.
- highrise0
think you need to use an array, not sure...but try this.
String.prototype.reverseMe = function() {
var ary = this.split("");
ary.reverse();
var str = "";
for(var i=0;i
- jpea0
- monNom0
Cheers. the array actually came in handy...since I had it.