String.concat() : concat : String JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » String » concat »

 

String.concat()









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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo String
» concat