Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

step10 #7

Open
pul8219 opened this issue Sep 23, 2020 · 1 comment
Open

step10 #7

pul8219 opened this issue Sep 23, 2020 · 1 comment

Comments

@pul8219
Copy link

pul8219 commented Sep 23, 2020

잘 읽었습니다! export default 문법 설명부를 보니 제가 썼던 애매모호한 설명의 수정에 도움이 될 것 같습니다. 감사합니다. 👍

@eyabc
Copy link

eyabc commented Sep 28, 2020

정보 감사합니다 이런 것 까지는 생각 안해봤어요. ㅋㅋ

1.2 import한 값을 변경하기
이런식으로 let인 months를 바꾼다면 어떻게 될까??
정답은 error가 뜹니다.
에러 내용으로는 Assignment to constant variable. 라고 하는데 이는 const를 우리가 바꾸려할때 나는 에러와 비슷한데  let인 months가 이런 오류가 날까에 대한 답변은
https://stackoverflow.com/questions/53723251/javascript-modifing-an-imported-variable-causes-assignment-to-constant-varia
이곳에서   있다. (아마 모듈에서의 import하는 내용을 함부로 바꾸지 못하게 하기위해 const로 고정시킨것이지 않을까싶다.)

5. 혼자 하는 정리 및 만들기 (조금 극단적(?)일수도 있다.) 에서 불변하는 객체는 const 로 바꿔주세요~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants