Node.js examples for String:Case
String reverse with test case
String.prototype.strReverse = function() { var length = this.length, strcopy = ''; for(var i = length-1; i >= 0; i--) { strcopy+=this[i]/*from ww w . j a v a2 s . com*/ } return strcopy; } console.log(" 0011".strReverse())