일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- React
- 반공변성
- 투포인터
- SSR
- 타입 좁히기
- 이분 검색
- 호이스팅
- 리터럴 타입
- recoil
- tailwind
- webpack
- RTK Query
- Cypress
- useAppDispatch
- ESlint
- CI/CD
- dfs
- 무한 스크롤
- app router
- Promise
- 태그된 유니온
- Jest
- async/await
- map
- TS
- autosize
- 결정 알고리즘
- 공변성
- CORS
- 인터섹션
Archives
- Today
- Total
목록substring (1)
짧은코딩
substr(), substring(), slice()
substr() substr() 함수는 s.substr(start, length) 이렇게 하면 start부터 length 만큼 잘라서 반환해준다. const s = "abcdef"; console.log(s.substr(1, 3)); //bcd 이렇게 출력이 된다. substring() s.substring(start, end) 이렇게 사용한다. substring()는 시작 인덱스 번호부터 마지막 인덱스 번호를 가져와준다. const s = "abcdef"; console.log(s.substring(1, 3)); //bc 이렇게 출력이 된다. slice() substring() 함수와 사용법이 같다. s.slice(start, end) 이렇게 하면 된다. const s = "abcdef"; consol..
코딩테스트 with JS/자바스크립트 알고리즘 문제풀이(인프런)
2022. 8. 10. 01:34