Javascript concat() String Method

Last Updated Jul 29, 2015, 07:00:14 PM

The JavaScript concat method concatenate or adds two or more strings and return resultant concatenated string(a new string).

where index is start from 0 to string lenght -1.


The javascript string concat() method is used to combine the text or characters from one or more to produce a new string. Keep in mind that, changing the text of one string do not affect the other string

The following example combines the string "Hello, Jack" with other two strings as 'Good morning, you look great today' and produces a new string as like this Hello, Jack Good morning you look great today


Try It Now

Sources and Credits

The source of the content has been referred and updated with Mozilla Developer Network and W3C Organization

Last Updated Jul 29, 2015, 07:00:14 PM

Browser compatibility

concat() Yes Yes Yes Yes Yes Yes Yes