Returns the calling string value converted to uppercase.
Method of String
Syntax
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
The following example displays the string "ALPHABET":