일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- NextJs
- 이벤트버블링
- 백준10798
- 백준5086
- Vue3
- 리액트
- 정처기필기
- 자바스크립트
- 정보처리기사
- Vue
- styled-components
- TypeScript
- 투두리스트
- 파이썬
- 코딩테스트
- 코딩테스크
- 10815
- 타입스크립트
- JS
- 백준
- zustand
- 바닐라js
- reactrouter
- 백준2501
- 백준10815
- react
- 정처기
- JavaScript
- 정처기실기
- 코테
Archives
- Today
- Total
목록javascripts (1)
윤시의 블로그

투두 리스트를 만들며 디지털 타이머를 JavaScript 코드로 구현해보았다.타이머는 start, stop, reset 버튼을 통해 제어할 수 있고, 시간은 초 단위로 업데이트 되어 화면에 표시된다. 1. HTML 요소 선택const timerDisplay = document.getElementById("timer-display");const startBtn = document.getElementById("start-btn");const stopBtn = document.getElementById("stop-btn");const resetBtn = document.getElementById("reset-btn"); timerDisplay : 타이머의 시간 표시 요소를 선택한다. 경과 시간을 업데이트할..
JavaScript
2024. 10. 8. 21:21