toUpperCase

  • Tags
  • Files

Returns the calling string value converted to uppercase.

Method of String
Implemented in JavaScript 1.0
ECMAScript Edition ECMAScript 1st Edition

Syntax

string.toUpperCase()

Parameters

None.

Description

The toUpperCase method returns the value of the string converted to uppercase. toUpperCase does not affect the value of the string itself.

Examples

Example: Using toUpperCase

The following example displays the string "ALPHABET":

var lowerText="alphabet";
document.write(lowerText.toUpperCase());

See Also

toLocaleUpperCase

toLowerCase

 

Contributors to this page: evilpie, ziyunfei, Brettz9, Mgjbot, Ptak82, Maian, Dria
Last updated by: ziyunfei,