toUpperCase, toLowerCaseChanging string case. Converting to Upper and Lower Case A string is converted to upper case with toUpperCase(). A string is converted to lower case with toLowerCase(). Examplelet text1 = "Hello World!"; let text2 = text1.toUpperCase();Try it Yourself PreviousNext