const count = document.getElementById("count");


function increase(){

count.innerHTML = parseInt(count.innerHTML)+1

}


일단 html에 #count는 있음

js를 위에처럼 하면 에러가 cannot read properties of null 뜨는데

그럼 함수 안에서 count라는걸 못찾는 거잖아

왜 그런거임?