English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JavaScript toLocaleUpperCase() Method

 JavaScript String Object

toLocaleUpperCase()The method method converts the string to uppercase in a local way.

In most cases, this method will produce the same result astoUpperCase()The same result, but for some language environments (such as Turkish), the case mapping does not follow the default case mapping in Unicode, so different results may occur.

Syntax:

string.toLocaleUpperCase()
var str = "www.oldtoolbag.com";
var low = str.toLocaleUpperCase();
Test See‹/›

Browser Compatibility

All browsers fully support the toLocaleUpperCase() method:

Method
toLocaleUpperCase()YesYesYesYesYes

Technical Details

Return Value:A new string representing the call string will be converted to uppercase according to any language-specific case mapping.
JavaScript Version:ECMAScript 1

 JavaScript String Object