Core JavaScript 1.5 Reference:Global Objects:String:toUpperCase
From MDC
(Redirected from Core JavaScript 1.5 Reference:Objects:String:toUpperCase)
Contents |
[edit] Summary
Returns the calling string value converted to uppercase.
| Method of String | |
| Implemented in: | JavaScript 1.0, NES2.0 |
| ECMA Version: | ECMA-262 |
[edit] Syntax
toUpperCase()
[edit] Parameters
None.
[edit] Description
The toUpperCase method returns the value of the string converted to uppercase. toUpperCase does not affect the value of the string itself.
[edit] Examples
[edit] Example: Using toUpperCase
The following example displays the string "ALPHABET":
var lowerText="alphabet" document.write(lowerText.toUpperCase())