toUpperCase()

Convert the calling string to upper case.

Signature

toUpperCase(): String

Description

The toUpperCase() method converts the calling string to upper case. The calling string isn’t changed.

Parameters

None

Return value

Type Description

String

Value of the calling string converted to upper case.

Examples

Convert an email address to upper case:

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

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!