here my code goes....
[code=javascript]
String.prototyp e.reversed = function() {
var r = "";
for (var i = this.length - 1; i >= 0; i--) {
r += this[i];
}
return r;
}
[/code]
How does this[i] mean?
[code=javascript]
String.prototyp e.reversed = function() {
var r = "";
for (var i = this.length - 1; i >= 0; i--) {
r += this[i];
}
return r;
}
[/code]
How does this[i] mean?
Comment