toUpperCase (JavaScript)
Converts all characters of a string to upper case.
Defined in
String (Standard - JavaScript)Syntax
toUpperCase() : string
Return value | Description |
---|---|
string |
The string in upper case. |
Examples
The following example converts a String object to upper case.cities = new String("Paris Moscow Tokyo");
cities.toUpperCase()