JavaScript Concat | JS Concat | JavaScript Array Concat Tutorial By WDH

JavaScript Concat


JavaScript concat
This method adds two or more strings and returns a new single string.
Syntax
String.concat(str2, str3[,…,strN]);
Parameters:
Str2…stringN: These are the strings to be concatenated.
Example1- Program to join two string with the help of concat():
Output
Example2- Program to join three array with help of concat():
Output