Check out v4 of the Fauna CLI

v4 of the Fauna CLI is now in beta.

The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start.

string.concat()

Concatenate two Strings.

Signature

concat(otherString: String) => String

Description

The concat() method concatenates otherString to this String and returns a new String.

This String and otherString aren’t modified.

The concat() method is equivalent to using the + operator with string operands.

Parameters

Parameter Type Required Description

otherString

String

Yes

String to concatenate to this String.

Return value

Type Description

String

otherString concatenated to calling string.

Examples

Concatenate this String with the String "SUCCESS":

"HTTP/1.1 200 OK".concat(" SUCCESS")
"HTTP/1.1 200 OK SUCCESS"

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!