split() 메서드는 String 객체를 지정한 구분자를 이용하여 여러 개의 문자열로 나눈다.
구문 : split(), split(separator), split(separator, limit)
const str = "it's dark under the lamp";
const word = str.split(' ');
console.log(words[3]);
// "the"
const char = str.split('');
console.log(chars[8]);
// "k"
const copy = str.split();
console.log(Copy);
// ["it's dark under the lamp"]