To Upper Case
Converts a string to upper case.
| Category | Strings |
| Author | Pol Gubau |
| Since | 1.0.0 |
| Last Updated | 2025-03-15 |
| Type | Sync |
| Compatibility | Universal |
Example
Input
toUpperCase('hello world')Output:
'HELLO WORLD'
Return
Returns the upper-cased string.
Type: string
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| str | string | null | Yes | The string to convert to upper case. |
Notes
This function converts all characters of the string to uppercase.
Tags
- string
- upperCase
- conversion