-
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
add task solution #229
base: master
Are you sure you want to change the base?
add task solution #229
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.
These requirements are not implemented:
the program randomly generates a number of 4 different digits
the player enters a number of 4 different digits - currently, i can enter 1111
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.
GJ, approve ✅
src/getRandomInt.js
Outdated
const nums = []; | ||
|
||
while (nums.length !== 4) { | ||
const randomNum = Math.floor(Math.random() * (9 - 1 + 1) + 1); |
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.
const randomNum = Math.floor(Math.random() * (9 - 1 + 1) + 1); | |
const randomNum = Math.floor(Math.random() * 9 + 1); |
No description provided.