๐Ÿ“šย Reference


๐Ÿ“œ Chapter


push()

Expressions & Operators

โ€ฃ

โ€ฃ

โ€ฃ

concat()


array.concat([value1[, value2[, ...[, valueN]]]])

๋ฐฐ์—ด๋ช….concat(๊ฐ’)
let arr1 = ["์‚ฌ๊ณผ", "๋ฐฐ", "ํ•œ๋ผ๋ด‰", "ํฌ๋„", "๋ฐ”๋‚˜๋‚˜"];
let arr2 = ["ํŒŒ์ธ์• ํ”Œ", "๋ณต์ˆญ์•„"];

// ['์‚ฌ๊ณผ', '๋ฐฐ', 'ํ•œ๋ผ๋ด‰', '๋ฐ”๋‚˜๋‚˜', 'ํŒŒ์ธ์• ํ”Œ', '๋ณต์ˆญ์•„']
console.log(arr1.concat(arr2));

concat, push, spread - ๋น„๊ต