Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

The toUpperCase JavaScript string method

//toUpperCase is a string method that returns the uppercased version of a specified string.
// We will use this to capitalize the first letter:

const firstLetter = "f"

const firstLetterCap = firstLetter.toUpperCase()
// F
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #The #toUpperCase #JavaScript #string #method
ADD COMMENT
Topic
Name
8+3 =