
๋ฌธ์์ด ๋ฐฐ์ด strlist๊ฐ ๋งค๊ฐ๋ณ์๋ก ์ฃผ์ด์ง๋๋ค. strlist ๊ฐ ์์์ ๊ธธ์ด๋ฅผ ๋ด์ ๋ฐฐ์ด์ retrunํ๋๋ก solution ํจ์๋ฅผ ์์ฑํด์ฃผ์ธ์.
strlist ์์์ ๊ธธ์ด โค 100strlist๋ ์ํ๋ฒณ ์๋ฌธ์, ๋๋ฌธ์, ํน์๋ฌธ์๋ก ๊ตฌ์ฑ๋์ด ์์ต๋๋ค.| strlist | result | 
|---|---|
| ["We", "are", "the", "world!"] | [2, 3, 3, 6] | 
| ["I", "Love", "Programmers."] | [1, 4, 12] | 
์ ์ถ๋ ฅ ์ #1
์ ์ถ๋ ฅ ์ #2
const solution = strlist => strlist.map(a => a.length)