.concat() // 배열, 문자열 합치기
Array.prototype.concat()concat() 메서드는 인자로 주어진 배열이나 값들을 기존 배열에 합쳐서 새 배열을 반환합니다. console.log(배열1.concat(배열2)); 12345var array1 = ['a', 'b', 'c'];var array2 = ['d', 'e', 'f']; console.log(array1.concat(array2));// expected output: Array ["a", "b", "c", "d", "e", "f"]cs String.prototype.concat()concat() 메서드는 매개변수로 전달된 모든 문자열을 호출 문자열에 붙인 새로운 문자열을 반환합니다.console.log(문자열1.concat('문자사이에 추가될 문자나 공백', 문자열2..