upperFirst
Modified on Wed, 02 Aug 2023
Description
Convert the first character of string to upper case
Syntax
upperFirst(text)
Parameters
Input Parameter | Type | Description |
---|---|---|
text | string | The string to convert. |
Return value
Type |
---|
string |
Sample
Example | Result | Description |
---|---|---|
upperFirst('fred') | 'Fred' | Convert the first character of string to upper case |
To view all the String functions, click here.
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