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 www.techighness.com #
 
PREVIOUS NEXT
Tagged: #javascript #capitalize
ADD COMMENT
Topic
Name
8+4 =