var one = ["a", "b", "c"], two = ["d", "e", "f"];
one[0] = one[0]+two[0];
И alert(one[0]);
будет ad;one[0] = one[0]+two[0]+two[0]+two[0]+two[0]+two[0]+two[0]+two[0]+two[0]+two[0]+two[0]+two[0]+two[0]+two[0]+two[0]+two[0];
) function paster(arr[a], iter){
var summa=[" "];
for(var i = 0; i<iter; i++){
summa[0] = summa[0] +arr[a];
}
return summa[0];
}
one[0] = one[0]+paster(two[0], 10);
alert(one[0]);
var one = ["a", "b", "c"], two = ["d", "e", "f"];
function paster(c, iter){
var summa="";
for(var i = 0; i<iter; i++){
summa = summa + c;
}
return summa;
}
one[0] = one[0]+paster(two[0], 10);
alert(one[0]);
function paster(char, count, result = '') {
while (count--) result += char
return result
}
const paster = (char, count) => Array(count).fill(char).join('')