string concatenate js code example
Example 1: javascript concat
let chocholates = ['Mars', 'BarOne', 'Tex'];
let chips = ['Doritos', 'Lays', 'Simba'];
let sweets = ['JellyTots'];
let snacks = [];
snacks.concat(chocholates);
snacks.concat(chocolates, chips, sweets);
Example 2: string javascript concatenation
var dest = new String("");
var src = new String("aze");
var ar = new Array();
...
ar.push(src);
ar.push(src);
...
dest = ar.join("");
Example 3: javascript add to string
var s = 'hell'
s = s + 'o'