String.toUpperCase() (Method)

Converts a string to all upper case.


ECMAScript edition - 2
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Netscape Enterprise server - 2.0
Opera - 3.0
Property/method value type:String primitive
JavaScript syntax:-myString.toUpperCase()

The result of this method is a string primitive containing the value of the object with all characters converted to upper case.

The original string is converted from arbitrary case to upper case on a character by character basis.

The characters in the output string will be the upper case equivalents of the characters in the input string according to the rules defined by the Unicode 2.0 standard.

The Canonical Unicode 2.0 mapping will be used and therefore no special international character handling semantics take place. However non-ECMA compliant implementations may provided localization support not specified by ECMA 262.

This method is intentionally generic and may be applied to a variety of object types other than strings.

The effect of this method may depend on the locale settings in a fully localizable implementation.

See also:Bit, Character handling, Character-case mapping, String.prototype, String.toLocaleLowerCase(), String.toLocaleUpperCase(), String.toLowerCase()


ECMA 262 edition 2 - section

ECMA 262 edition 3 - section