String.concat() : concat « String « JavaScript Tutorial






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>








6.11.concat
6.11.1.String.concat()