Mega Code Archive

 
Categories / JavaScript Reference / Javascript Methods
 

Concat() Example

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