
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
SyntaxError 'modalMessageList' has already been declared (at index)라고 합니다.
강의 내용을 다 따라했을 땐 오류가 없었는데요
index.css에서 내용을 바꾸고 나니, countdown.js 페이지에서만 오류 메시지가 뜹니다.
// 'back' 클래스를 가진 요소를 찾아 스타일을 가져옵니다.
const doorDiv = document.querySelector(`.day-${index + 1}`)
const backDiv = doorDiv.querySelector(`.back`);
const style = window.getComputedStyle(backDiv);
const pTag = backDiv.querySelector('p')
const text = modalMessageList[index]['message']
index.js의 const modalMessageList에서 부호중 쓰면 안되는게 있나요? 아니면 어떤 부분에서 문제가 있을까요?
이 부분이 왜 오류가 날까요?
보고 계신 화면 전체를 캡

처해 주시면, 튜터님들이 빠르게 상황을 이해할 수 있어요.
SyntaxError 'modalMessageList' has already been declared (at index)
