initials() Function

Returns only the uppercase characters from within the given text.

Syntax

initials( text )

text: (Text) The text containing uppercase to be returned.

Returns

Text

Examples

You can experiment with this function in the test box below.

Test Input

initials("John Smith") returns JS

Open in Github

On This Page

FEEDBACK