String.concat()
|
|
Syntax |
|
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>
|
|
|
HTML code for linking to this page:
|