JavaScript (ES2026) reference · String Methods

JavaScript String concat() Method

Join one or more strings to the end of this string and return the result. The + operator and template literals are more common.

JavaScript (ES2026) Since ES3

Create a free account to save this page, take notes and track your progress. Sign in

Syntax

string.concat(str1, str2, /* …, */ strN)

Parameters

ParameterDescription
strings Values to append (converted to strings).

Return value

A new string.

Examples

Join stringsTry it yourself
console.log("Ready".concat("Camel", ".com"));

Output

ReadyCamel.com
The usual alternativesTry it yourself
const first = "Ada", last = "Lovelace";
console.log(first + " " + last);
console.log(`${first} ${last}`);

Output

Ada Lovelace
Ada Lovelace

Version history

VersionChange
JavaScript ES3Added

Was this page helpful?