Skip to content

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