To Upper Case

Converts a string to upper case.

CategoryStrings
AuthorPol Gubau
Since1.0.0
Last Updated2025-03-15
TypeSync
CompatibilityUniversal

Example

  • Input

    toUpperCase('hello world')

    Output:

    'HELLO WORLD'

Return

Returns the upper-cased string.

Type: string

Props

NameTypeDefaultRequiredDescription
strstringnullYesThe string to convert to upper case.

Notes

This function converts all characters of the string to uppercase.

Tags

  • string
  • upperCase
  • conversion

Related