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

[Discussion] 1부) commonjs란 무엇인가? #625

Open
Shamp07 opened this issue Aug 1, 2023 · 0 comments
Open

[Discussion] 1부) commonjs란 무엇인가? #625

Shamp07 opened this issue Aug 1, 2023 · 0 comments

Comments

@Shamp07
Copy link

Shamp07 commented Aug 1, 2023

안녕하세요. 글 잘 읽고 있는 와중에 예제가 잘못된 부분이 있는 것 같아 이슈남깁니다.

https://yceffort.kr/2023/05/what-is-commonjs

1)

스크린샷 2023-08-02 오전 12 27 53

위 부분이 코드가 완전 동일한데 로그값이 다르게 나온다고 나와있어서요. 둘 중 위 예제가 module.exports = 가 아닌 exports = 로 바뀌어야 하는 것 아닌가 해서 여쭤봅니다. 혹시 제가 착각한 부분이 있다면 말씀해주세요.

2)

스크린샷 2023-08-02 오후 10 31 56

위 예제에서 module2.js 가 빠져있는 것 뿐만아니라 결과에 setTimeout 콜백의 콘솔 로그 값도 추가하면 좋겠다고 생각해 적어둡니다!

3)

image

오타가 존재합니다!

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

1 participant