const numbersOne = [1, 2, 3];
const numbersTwo = [4, 5, 6];
const oneprint = numbersOne.concat(numbersTwo);
const twoprint =[…numbersOne,…numbersTwo];
console.log( oneprint);
console.log(twoprint);
const numbersOne = [1, 2, 3];
const numbersTwo = [4, 5, 6];
const oneprint = numbersOne.concat(numbersTwo);
const twoprint =[…numbersOne,…numbersTwo];
console.log( oneprint);
console.log(twoprint);
hello and welcome to fcc forum
you might want to check this SO thread, happy reading javascript - spread operator vs array.concat() - Stack Overflow
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.