Syntax
string.concat(string2)
The concat() method concatenates the string in string2 to the end of string to return a new string.
<html> <script language="JavaScript1.2"> <!-- var myString1 = new String("Hello, "); var myString2 = new String("World!"); var myConcatString = myString1.concat(myString2); alert(myConcatString); --> </script> </html>