Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to change the first 3 letters from a string toupper case

function capitalizeFirstLetter(string) {
  return string.charAt(0).toUpperCase() ;
}

console.log(capitalizeFirstLetter('foo')); // Foo
 Run code snippetHide results
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #letters #string #toupper #case
ADD COMMENT
Topic
Name
3+4 =