JavaScript(8)
1. 문자열 객체 메소드 문자열 추출 charAt(인덱스 번호) let str = “Gone with The wind” document.write(str.charAt(0)) // G -> ‘0’인덱스의 문자 추출 하위 문자열(시작 인덱스 번호, 종료 인덱스 번호+1) let str = “Gone with The wind” document.write(str.substring(10, 13)) // 10~12인덱스의 문자 추출 슬라이스(시작 인덱스 번호, 마지막 인덱스 번호+1) let str = “Gone with The wind” … Read more