๋ฐฐ์ด์ ๊ฐ ์์์ ๋ํด ํน์ ์์ ์ ์ํํ๊ณ ๊ทธ ๊ฒฐ๊ณผ๋ฅผ ์๋ก์ด ๋ฐฐ์ด๋ก ๋ฐํํจ ํน์ง = ๋ฐฐ์ด ์ํ, ๋งคํํจ์ ์ ์ฉ, ์๋ ๋ฐฐ์ด์ ๋ณ๋ x ๋งคํํจ์ ์ ์ฉ : ์ฌ์ฉ์๊ฐ ์ ์ํ ํจ์๋ฅผ ๊ฐ ์์์ ์ ์ฉ. ์ด ํจ์๋ ๊ฐ ์์๋ฅผ ๋งค๊ฐ๋ณ์๋ก ๋ฐ์์ ์์ ์ํ ๋ฐ ๋ฐํ const numbers = [1, 2, 3, 4, 5]; const doubledNumbers = numbers.map((number) => { return number * 2; }); // doubledNumbers์๋ [2, 4, 6, 8, 10]