merge two strings alternatively in javascript code example
Example: merge two strings with alternate characters javascript
var m = (a, b) => a.length ? [a[0], ...m(b, a.slice(1))] : b;
var string1 = "SCE ESG!";
var string2 = "ERTMSAE";
var mix = m(string1, string2);
console.log(mix.join(''));