바닐라 JS로 크롬앱 만들기 (#3, #4, #5, #6) 완료
* 배운 것
1. classList.remove(): 클래스에서 삭제
classList.add(): 클래스에 추가
2. localStorage.setItem(key, value) / localStorage.getItem()
3. `${변수명}`
4. String.padStart(원하는 길이, 채울 string)
ex) "1".padStart(2, "0") -> 01
5. setInterval(function, time) : time 간격으로 function 실행
6. setTimeout(fucntion, time): time 만큼의 시간이 지난 후 function 실행
7. Math.random() : 0~1사이의 랜덤 숫자 생성
8. Math.floor() : 내림
9. document.body.appendChild(): html 의 body안에 새로운 element 추가
* 결과 사진
728x90