slice(startIndex, endIndex)

๊ตฌ๋ถ„
๋ฐฐ์—ด ๋ฉ”์†Œ๋“œ
์„ค๋ช…
๋ฐฐ์—ด์˜ startIndex๋ถ€ํ„ฐ endIndex ์ „ ๊นŒ์ง€์˜ ์š”์†Œ๋ฅผ ์ƒˆ๋กœ์šด ๋ฐฐ์—ด ๊ฐ์ฒด๋กœ ๋ฐ˜ํ™˜