javaScript10 hex color가 왜 안먹히는 지 모르겠음. const title = document.querySelector("#title"); const BASE_COLOR = "rgb(26, 188, 156)"; const OTHER_COLOR = "rgb(192, 57, 43)"; function handleClick(){ const currentColor = title.style.color; console.log(currentColor); if (currentColor === BASE_COLOR){ title.style.color = OTHER_COLOR; } else { title.style.color = BASE_COLOR; } } function init(){ title.style.color = BASE_COLOR; title.addEventList.. 2020. 3. 16. javaScript 강좌 javaScript 강좌[노마드 코더] - 내용 쉽지 않음 / 빠르게 익히기에 좋음 / 하나 하나 곱씹고 생각할 시간을 가질 필요가 있음 - 10분짜리 강의를 1시간동안 혼자 끙끙댈 가능성 있음 2020. 3. 15. 이전 1 2 다음