Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

first letter string uppercase javascript

String.prototype.capitalize = function() {
    return this.charAt(0).toUpperCase() + this.slice(1);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #letter #string #uppercase #javascript
ADD COMMENT
Topic
Name
6+9 =