append string in js code example
Example 1: js concatenate strings
const str1 = 'Hello';
const str2 = 'World';
console.log(str1 + str2);
>> HelloWorld
console.log(str1 + ' ' + str2);
>> Hello World
Example 2: string concatenation js
var aString="";
aString.concat(value1, value2, ... value_n);
Example 3: append string js
var s = "1"
s += "2"