트러블 슈팅📌

Assignment to constant variable.

merrytang 2022. 8. 8. 20:51

원인

이미 선언한 const 변수에 새로운값을 할당할 때 발행하는 에러이다.

const 변수는 재할당을 허용하지 않는다.

 

해결방법

const로 선언한 변수를 let으로 변경해준다.