toUpper (JavaScript)

Converts all characters of a string to upper case.

Defined in

String (Standard - JavaScript)

Syntax

toUpper() : 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.toUpper()