ES6
string 메소드 - includes(), repeat(), startsWith(), endsWith()
liufeier
2020. 9. 18. 11:42
반응형
See the Pen 200918-5 by hwd3004 (@hwd3004) on CodePen.
includes
찾고 싶은 문자가 있는지 확인
See the Pen 200918-6 by hwd3004 (@hwd3004) on CodePen.
repeat
글자 반복
See the Pen 200918-7 by hwd3004 (@hwd3004) on CodePen.
startsWith
문자열이 지정해준 값으로 시작하는지 확인
endsWith
문자열이 지정해준 값으로 끝나는지 확인
반응형