Javascript String upperFirstLetter()

Description

Javascript String upperFirstLetter()


/**/* www  . j a  va  2 s  .  c om*/
 * 
 */

String.prototype.upperFirstLetter = function() {
    return this.charAt(0).toUpperCase() + this.slice(1);
}



PreviousNext

Related