Skip to content

complete exercises#10

Open
acecyq wants to merge 3 commits intowdi-sg:masterfrom
acecyq:master
Open

complete exercises#10
acecyq wants to merge 3 commits intowdi-sg:masterfrom
acecyq:master

Conversation

@acecyq
Copy link
Copy Markdown

@acecyq acecyq commented May 31, 2018

No description provided.

Comment thread script.js
// }
// }
// console.log(placing);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good job breaking it up into cases. You've covered nearly everything, except.. when I tried to run it with the number 14, I got an empty string...

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks Chee Kean for pointing that out. Forgot to add the default case.

Comment thread script.js Outdated



// var randomInt = Math.floor(Math.random() * 11);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

randomInt can be 0 here...

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks Chee Kean. Sorry forgot to exclude 0.

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