What is difference between spread and concat method

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 :slight_smile:

you might want to check this SO thread, happy reading :slight_smile: javascript - spread operator vs array.concat() - Stack Overflow

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.