This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

toLocaleUpperCase

Summary

Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment’s current locale.

Syntax

stringVar.toLocaleUpperCase( )

Examples

var hello = "wOrLd";
var foobar = hello.toLocaleUpperCase();
console.log(hello); // "wOrLd"
console.log(foobar); // "WORLD"

Remarks

The required stringVar reference is a String object or string literal.

The toLocaleUpperCase method converts the characters in a string, taking into account the host environment’s current locale. In most cases, the result is the same as the result the toUpperCase method. Results differ if the rules for a language conflict with the regular Unicode case mappings, such as Turkish.

See also

Other articles

Attributions

  • Microsoft Developer Network: Article