Home > Article > Web Front-end > Getting started with the toUpperCase method of JavaScript string objects (used to convert letters to uppercase)_Basic knowledge
JavaScript toUpperCase method
toUpperCase method is used to convert (English) string to uppercase and return the converted string. Its syntax is as follows:
toUpperCase method instance
Run this example, output:
toLocaleUpperCase method
toLocaleUpperCase method toUpperCase is basically the same. toLocaleUpperCase converts the string to uppercase according to the local method. Only a few languages, such as Turkish, have local case mapping.