Javascript String toAkaLowerCase()

Description

Javascript String toAkaLowerCase()


String.prototype.toAkaLowerCase = function() {

  var integer=0,i;
  var newString="";

  for(i=0;i<this.length;i++){

   var integer = this.charCodeAt(i);

   if(integer>=65 && integer<=90){
    integer=integer+32;/* w  w w  .  ja  va2s. com*/
    newString=newString+String.fromCharCode(integer);
   }
   else{
    newString=newString+String.fromCharCode(integer);
   }
  }

  return newString;

 };



PreviousNext

Related