Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript capitalize

myString = 'the quick green alligator...';
myString.replace(/^w/, (c) => c.toUpperCase());

myString = '    the quick green alligator...';
myString.trim().replace(/^w/, (c) => c.toUpperCase());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #capitalize
ADD COMMENT
Topic
Name
9+9 =