Cannot set properties of null (setting 'innerHTML') index.html:33 오류메시지 해석

devyoon99·2021년 11월 13일
0

coding etc

목록 보기
3/4
post-thumbnail

5)Cannot set properties of null (setting 'innerHTML') index.html:33 오류메시지 해석

document.querySelector(".asd").innerHTML = "aaa";
  • innerHTML의 옆이 null이다.
  • class가 asd인 tag가 null이다 -> 없는 값이다.
index.html:33
  • index.html의 33번째 줄에 오류가 있다는 뜻이다.

0개의 댓글

관련 채용 정보