Animated Rainbow Nyan Cat
본문 바로가기
javascript

charAt ()

by 이유나1 2022. 8. 22.
728x90
반응형

charAt()

//첫글자 출력
//"문자열",charAt(숫자);
const str1 = "javascript reference";
const currentStr1 = str1.charAt();        //j
const currentStr2 = str1.charAt("0");     //j
const currentStr3 = str1.charAt("1");     //a
const currentStr4 = str1.charAt("2");     //v
728x90

'javascript' 카테고리의 다른 글

mouseenter / movesover 차이점  (2) 2022.09.05
함수 유형  (3) 2022.08.22
match ()  (3) 2022.08.22
search ()  (4) 2022.08.22
includes  (2) 2022.08.17

댓글


/
/
/

CSS
광고준비중입니다.