upperFirst

Modified on Wed, 02 Aug 2023

Description

Convert the first character of string to upper case

Syntax

upperFirst(text)

Parameters

Input ParameterTypeDescription
textstringThe string to convert.

Return value

Type
string

Sample

ExampleResultDescription
upperFirst('fred')'Fred'Convert the first character of string to upper case

To view all the String functions, click here.