Posts
My thoughts and ideas
Welcome to the blog
My thoughts and ideas
이번에는 React JS를 이용해 장바구니를 만들어보자.
const ProductList = ({ productList, handleProductItemClick }) => { if...
-
VanillaJS로 스톱워치 만들기
ToyProject
·
이번에는 Vanilla JS를 이용해 스톱워치를 만들어보자.
스톱워치 모듈
상태 이름 설명 _interval start() 시 실행되는 setInterval이 리턴하는 intervalID _centisecond 현재 스톱워치의 시간 (단위: centisecond) _lapCount 현재 스톱워치의 누적 Lap 갯수 _prevLap 직전 Lap 시간
- 모듈 메서드 (함수)
메소드...