YouTip LogoYouTip

Jsref Tolocaleuppercase

# JavaScript toLocaleUpperCase() Method [![Image 3: String Object Reference Manual](#) JavaScript String Object](#) ## Example Convert a string to uppercase: var str = ""; var res = str.toLocaleUpperCase(); _n_ Output: [Try it Β»](#) * * * ## Definition and Usage The toLocaleUpperCase() method converts a string to uppercase letters according to the locale. The locale is determined by the browser's language setting. Usually, this method returns the same result as the [toUpperCase()](#) method, except for a few languages (like Turkish) that have locale-specific case mappings. **Note:** The toLocaleUpperCase() method does not change the original string. **Tip:** Use the [toLocaleLowerCase()](#) method to convert a string to lowercase letters according to the locale. * * * ## Browser Support The numbers in the table specify the first browser version that fully supports the method. | Method | | | | | | | --- | --- | --- | --- | --- | --- | | toLocaleLowerCase() | Yes | Yes | Yes | Yes | Yes | * * * ## Syntax string.toLocaleUpperCase() ## Parameters None. ## Return Value | Type | Description | | --- | --- | | String | The string converted to uppercase according to the locale. | ## Technical Details | JavaScript Version: | ECMAScript 1 | | --- | * * JavaScript String Object](#)
← Python QuizJsref Trim β†’