Skip to content
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

Otters - Lulu S. #101

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Otters - Lulu S. #101

wants to merge 3 commits into from

Conversation

sunrey32
Copy link

@sunrey32 sunrey32 commented Jun 7, 2022

No description provided.

Copy link

@kendallatada kendallatada left a comment

Choose a reason for hiding this comment

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

Hi Lulu! Your submission has been scored as green. I left some comments in your code. Nice job! ☺️

export const drawLetters = () => {
// Implement this method for wave 1
const result = [];
const available_pool = JSON.parse(JSON.stringify(LETTER_POOL));

Choose a reason for hiding this comment

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

Nice deep copy ✨

for (let letter of input) {
if (available_letters.includes(letter)) {
//remove 1 letter from available_letters
available_letters.splice(available_letters.indexOf(letter), 1);

Choose a reason for hiding this comment

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

Nice usage of splice ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants