일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
29 | 30 |
Tags
- Express.js
- HTTP
- 게임 서버 아키텍처
- ERD
- 그래프 탐색
- Keys
- Prisma
- 백준 9527번
- PROJECT
- pm2
- ccw 알고리즘
- trie
- vector insert
- 이분 탐색
- localstorage
- Github
- router
- MongoDB
- MySQL
- 그리디
- string
- 트라이
- branch
- insomnia
- DP
- html5
- Next
- map
- 자바스크립트
- JavaScript
Archives
- Today
- Total
목록문자열 (1)
dh_0e

1. String string.length = 문자열 길이 string.substr(a, b) = a부터 b개의 문자를 불러옴 string.slice(a, b) = a부터 b-1까지의 문자를 불러옴 string.search("word") = string에 word가 시작되는 위치를 불러옴 string.replace("word", "word2") = string에 word를 word2로 바꿔줌let string = "hello";console.log(string.length); // 5console.log(string.substr(1, 3)); // ellconsole.log(string.slice(2, 4)); // llconsole.log(string.search("e")); // 1console.lo..
내일배움캠프/HTML,CSS,JavaScript
2024. 4. 22. 21:04