Код: Выделить всё
const arr1 = [1, 2, 3];
const arr2 = [4, 5];
const result = arr1 + arr2;
console.log(result); // Output: "1,2,34,5" (Why not [1, 2, 3, 4, 5]?)Подробнее здесь: https://stackoverflow.com/questions/796 ... the-arrays
Код: Выделить всё
const arr1 = [1, 2, 3];
const arr2 = [4, 5];
const result = arr1 + arr2;
console.log(result); // Output: "1,2,34,5" (Why not [1, 2, 3, 4, 5]?)