String.prototype.toUpperCase

Returns a string where all alphabetic characters have been converted to uppercase.

Syntax

toUpperCase()

Return value

A string.

Examples

"hello".toUpperCase()
"HELLO"