capitalize
Modified on Wed, 16 Aug 2023
Description
Convert the first character of the string to upper case and the remaining to lower case
Syntax
capitalize(text)
Parameters
Input Parameter | Type | Description |
---|---|---|
text | string | The string to capitalize. |
Return value
Type |
---|
string |
Sample
Example | Result | Description |
---|---|---|
capitalize("hello world") | "Hello world" | Returns capitalized string |
capitalize("john paul SR") | "John paul sr" | Returns capitalized string |
To view all the String functions, click here.
See Also
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article