string.toUpperCase()

Convert a String to upper case.

Signature

toUpperCase() => String

Description

Converts the calling String to upper case. The calling String isn’t changed.

Parameters

None

Return value

Type Description

String

Upper case version of the calling String.

Examples

Convert an email address to upper case:

"john.doe@example.com".toUpperCase()
"JOHN.DOE@EXAMPLE.COM"
\