Convert to uppercase
Syntax
$string.toUpperCase()
Description
All letters of the string
string will be converted to uppercase.
Parameters
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
string | String | String whose characters are to be converted. | yes |
Return value
Type: String
string
to uppercase.
Examples
toUpperCase("Hello world!")
Output: HELLO WORLD!