JavaScript Reference/Javascript Methods/concat 2
"concat()" Example
<html>
<body>
<button onclick="var myS = new String("First String ");
alert(myS.concat("Another string"));">add two strings together</button>
</body>
</html>
"concat()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |String |
+----------------+--------------------------------------------------------------+
"concat()" Syntax, Parameters and Note
Note:
Merges multiple strings to a new string, which is the return value.
Syntax:
stringName.concat(paramN, . . . ,paramN)
paramN Required; a string or String object.