Javascript Array ReverseString()

Description

Javascript Array ReverseString()



Array.prototype.ReverseString=function  () {
  
  var rev="";

  for (i=this.length-1;i>=0;i--){
    rev=rev+this[i];//from  w w w . j av a2s .com
  }
  return rev;

}



PreviousNext

Related