-
Notifications
You must be signed in to change notification settings - Fork 530
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
solution🎀 #258
base: master
Are you sure you want to change the base?
solution🎀 #258
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such a nice performance 💪
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work 🔥
Really small comments and it's perfect ⭐
src/constants.js
Outdated
|
||
const MAX_LENGTH = 4; | ||
|
||
module.exports = MAX_LENGTH; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But better would be to have an object here 🙂
src/getBullsAndCows.js
Outdated
} | ||
} | ||
|
||
return [bulls, cows]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to return object {bulls, cows}
So the order doesn't matter when you do destructuring
src/app.js
Outdated
console.log('fix your answer and try again'); | ||
console.log('------------------------------'); | ||
startGame(); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use return
to avoid using else
No description provided.