React

ReactJS Practical Questions - Combine arrays using...

20.

How can you combine the following arrays using the spread operator?

const arr1 = [1, 2, 3];
const arr2 = [...arr1, 4, 5, 6];
const arr3 = [7, 8, 9];

const combinedArray = [...arr2, ...arr3];

const combinedArray = [...arr2, arr3];

const combinedArray = [arr2, ...arr3];

const combinedArray = [...arr2, 7, 8, 9];