var array1 = ['one', 'two'];
var array2 = ['three', 'four'];
var combine = [...array1, ...array2]
// 출력 ["one", "two", "three", "four"]
console.log(combine)
var array1 = ['one', 'two'];
var array2 = ['three', 'four'];
var combine = [...array1, ...array2]
console.log(combine)
/* var first = array1[0];
var second = array1[1];
console.log(first, second); // one", "two"
*/
var [fir, sec] = array1;
console.log(fir, sec); // "one", "two"