upper

Return a new string in which all case-based characters are in upper case.

This function does not generate a change.

Function

str.upper()

Arguments

None

Return value

Returns a new string with all characters in upper case.

Example

Example using upper():

'Hello World!!'.upper();

Return value in JSON format

"HELLO WORLD!!"