String.prototype.split()

김혁중·2022년 3월 17일
0

JavaScript

목록 보기
14/23

String.prototype.split()

split() 메서드는 String 객체를 지정한 구분자를 이용하여 여러 개의 문자열로 나눕니다.

let str = 'abcde'
str.split('') // ['a', 'b', 'c', 'd', 'e']
str.split() // ['abcde']
profile
Digital Artist가 되고 싶은 초보 개발자

0개의 댓글