JavaScript String concat()
JavaScript String concat()
The concat() method is used to join two or more strings. It does not have any impact on existing strings and it will return a new string.
Syntax:-
Its syntax is:- string.concat(string1, ..., stringX)
Return:-
Its return is:- a new string having all strings combined
Further Explanation:-
Parameter | Description |
string1, ...,stringX | Required. The strings to be joined. |