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