Skip to content

Conversation

@Jewelhae
Copy link

No description provided.

src/adagrams.js Outdated
// Implement this method for wave 1
// find the random letters
let letters = [];
for(let i = 0; letters.length < 10; ++i){

Choose a reason for hiding this comment

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

I wonder if it's possible that this is causing the long, or infinite loop, that's coming up in testing for me. Is there some chance that letters could never reach length 10?


export const drawLetters = () => {
// Implement this method for wave 1
const LETTER_POOL = {

Choose a reason for hiding this comment

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

Great debugging. How interesting that it was likely a variable scope issue!

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