const array1 = ['css', 'html', 'js'];
const array2 = ['react', 'vue', 'php'];
const array3 = array1.concat(array2);
console.log(array3);
const name = ['jeno', 'mark', 'jungwoo', 'jaehyun', 'jisung'];
const result = name.filter(name=>name.length > 4);
console.log(result);
const array = ['html', 'css', 'js'];
const addArray = [...array, 'react'];
console.log(addArray);
배열의 요소를 반환.
const array = ['html', 'css', 'js'];
const addArray = [array, 'react'];
console.log(addArray);
배열 그대로 반환
const name = ['제노', '마크', '재민', '정우'];
const [one, ...rest] = name;
console.log(one);
console.log(rest);
참고 :
Array.prototype.concat()
Array.prototype.filter()
spread 와 rest