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
Mozilla Developer Network