-
Notifications
You must be signed in to change notification settings - Fork 50
Leaves_Ga-Young #48
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
base: master
Are you sure you want to change the base?
Leaves_Ga-Young #48
Conversation
JS AdagramsWhat We're Looking For
|
// Do not remove this line or your tests will break! | ||
export default Adagrams; | ||
|
||
// used the Fisher-Yates Algorithm |
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.
Style note: move this function (shuffle()
) and objects to inside the module, but above all of the other functions (drawLetters()
, etc).
} | ||
} | ||
|
||
allLetters = shuffle(allLetters); |
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.
Here, you shuffle the entire array pool of letters... and then, you take the first ten. Consider how you could refactor this so that you randomly pick ten letters, instead of shuffling the entire array.
JS Adagrams
Congratulations! You're submitting your assignment!
Comprehension Questions