Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

uppercase first letter of each word javascript


//Without function
const str = 'FIDEURAM VITA';
const caps = str.split(' ').map(str =>str.charAt(0).toUpperCase() + str.slice(1).toLowerCase()).join(' ')
caps; // 'Fideuram Vita'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #uppercase #letter #word #javascript
ADD COMMENT
Topic
Name
8+2 =