quote (1) 썸네일형 리스트형 [노마드코더] Cannot set property 'innerText' of null 해결하기 분명 잘 따라했는데 왜 난 안되는거지? 여기저기 찾아봐도 답이 잘 안나오는 것은 역시나 초보니까(ㅅㄱ) 아마도 아래처럼 잘 따라쳤겠지? const quotes = [ { quote: "삶이 있는 한 희망은 있다", author: "키케로", }, { quote: "산다는것 그것은 치열한 전투이다", author: "로망로랑", }, ]; const quote = document.querySelector("#quote span:first-child"); const author = document.querySelector("#quote span:last-child"); const todaysQuote = quotes[Math.floor(Math.random() * quotes.length)]; quote.i.. 이전 1 다음