String.concat
concat — Combine a string with one or more strings into a new one.
Description
String.concat(string string, [string string, …])
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
string | string | No | ||
string, … | string | Yes |
Return values
string primitive.
Examples
Example #1 – concat example
Combine two or more strings into a new one.
You can also combine strings with the + operator.