| How can you combine the following arrays using the spread operator?
Choose the correct option from below list
(1)const combined = [array1, array2];
(2)const combined = [...array1, ...array2];
(3)const combined = ...array1 + ...array2;
(4)const combined = array1 + array2;
Answer:-(2)const combined = [...array1, ...array2]; | | |