'concat()' Example : concat 2 « Javascript Methods « JavaScript Reference

'concat()' Example

    
<html>
<body>
<button onclick="var myS = new String('First String '); 
                 alert(myS.concat('Another string'));">add two strings together</button>
</body>
</html>

    
      
      








Related examples in the same category

1.'concat()' Syntax, Parameters and Note
2.'concat()' is applied to