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
Syntax
string.concat(str1, str2, /* …, */ strN)
Parameters
| Parameter | Description |
|---|---|
strings |
Values to append (converted to strings). |
Return value
A new string.
Examples
console.log("Ready".concat("Camel", ".com"));
Output
ReadyCamel.com
const first = "Ada", last = "Lovelace";
console.log(first + " " + last);
console.log(`${first} ${last}`);
Output
Ada Lovelace Ada Lovelace
Version history
| Version | Change |
|---|---|
| JavaScript ES3 | Added |
Related
string.padEnd()· Pad the end of a string with another string until it reaches a target length. Useful for aligned text columns.string.repeat()· Return a new string made of this string repeated a given number of times, for example to build separators or padding.array.join()· Join all elements into one string, separated by commas or by a separator you choose.- JavaScript Strings · tutorial
- JavaScript String Methods · tutorial