Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org


The concat function concatenates two or more strings and returns the resulting string.

Syntax

concat( string1 , string2 [, stringn]* )

Arguments

stringn
This function accepts two or more arguments. Each of these arguments is a string.

Returns

A single string that is the concatenation of all the strings passed to the function as arguments.

Defined

XPath 1.0 4.2

Gecko support

Supported.

Document Tags and Contributors

 Contributors to this page: billccn, Sheppy, Mgjbot, Shoot, Fredchat, Ptak82, Jonnyq
 Last updated by: billccn,