Javascript - String.concat()

Syntax

string.concat(string2)

Description

The concat() method of an instance of the String object concatenates the string in string2 to the end of string to return a new string.

Example

<script language="JavaScript">
<!--

var myString1 = new String("Hello, ");
var myString2 = new String("World!");
var myConcatString = myString1.concat(myString2);

alert(myConcatString); //result is 'Hello, World!'

//-->
</script>
              
Write a review
Message:
Rating:
Name:
Email:
(optional)
(Your email that entered here will not show anywhere on website and will use only reference when someone reply your post)
  I want to receive a copy of email on this post (your email is needed)
 
Code: