Javascript String ucfirst=function()

Description

Javascript String ucfirst=function()


String.prototype.ucfirst=function(){
  var split=this.split('');
  split[0]=split[0].toUpperCase();/*from w  w  w . j  av a 2  s  .c  o m*/
  return split.join('');
};



PreviousNext

Related