Skip to content

[Sehwan] Week11 solution with JavaScript #177

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

Merged
merged 2 commits into from
Jul 14, 2024
Merged

Conversation

nhistory
Copy link
Contributor

No description provided.

Copy link
Contributor

@dev-jonghoonpark dev-jonghoonpark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코드를 엄청 깔끔하게 작성하셨네요 ...! 👍

let max = 1,
min = 1;

for (let num of nums) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이렇게 작성하면, 이 코드를 읽을 때 num이 나중에 재할당 되는 건가~? 하는 생각을 하지 않을 수 있겠네요!

Suggested change
for (let num of nums) {
for (const num of nums) {

다른 비슷한 사례는 생략할게요!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

반영해서 수정하였습니다! 🙇🏻

@nhistory nhistory merged commit edd29b3 into DaleStudy:main Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants