From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript String Object
The concat() method is used to join two or more strings.
| stringObject.concat(stringX,stringX,...,stringX) |
| Parameter | Description |
|---|---|
| stringX | Required. One or more string objects to be joined |
ExampleJoin two strings:
The output of the code above will be:
Try it yourself » |
JavaScript String Object
From http://www.w3schools.com (Copyright Refsnes Data)