Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to concatenate strings javascript


var str1 = "Hello ";
var str2 = "world!";
var res = str1.concat(str2);
// does not change the existing strings, but
// returns a new string containing the text
// of the joined strings.
 
PREVIOUS NEXT
Tagged: #concatenate #strings #javascript
ADD COMMENT
Topic
Name
9+8 =