JS: String.prototype
JS: String.prototype.concat
By Xah Lee. Date:
2017-02-17
. Last updated:
2026-02-02
.
str
.concat(
str1
,
str2
,
etc
)
Join strings
console.assert
(
"a"
.
concat
(
"b"
,
"c"
) ===
"abc"
);
JavaScript. String join, trim, pad
JS: String.prototype.concat
JS: String.prototype.repeat
JS: String.prototype.trim
JS: String.prototype.trimStart
JS: String.prototype.trimEnd
JS: String.prototype.padStart
JS: String.prototype.padEnd
Webdev Search 🔍
JavaScript in Depth
Basics
Filename Extension
Run JavaScript
Comment
Print
String
Number
Operators
Assignment
Boolean
Test Equality
Conditional
Loop
Array
Object
Function
Method
In-depth
Value Types
Variable
String
Property
Object
Array
Function
Class
Iterable
Promise
Module
Try Catch Throw
Regular Expression
Misc index
JS Object Reference
ECMAScript News
Misc. Index