Skip to content

loopdy loops#3

Open
Denae716 wants to merge 1 commit intoReturn-Ready-2021-JavaScript-Evening:mainfrom
Denae716:main
Open

loopdy loops#3
Denae716 wants to merge 1 commit intoReturn-Ready-2021-JavaScript-Evening:mainfrom
Denae716:main

Conversation

@Denae716
Copy link
Copy Markdown

@Denae716 Denae716 commented Dec 3, 2020

No description provided.

@kburd kburd self-requested a review December 5, 2020 17:39
Copy link
Copy Markdown

@kburd kburd left a comment

Choose a reason for hiding this comment

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

87% Great work! Fix up problem 8 and it'll be just about perfect

while(count < m){
total += n;
n++;
return total;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Would work perfectly if return was outside of loop (-1)

console.log("Good!")
break;
}
else {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Would work if the second prompt was not there (-2)

console.log(output.replace(/\d/g,'*'))
}

// 7. Table Square
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

4x4 grid (code-differently#7) is working but not the nxn grid (code-differently#8) (-10)

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