-
Notifications
You must be signed in to change notification settings - Fork 24
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
finished! #23
base: master
Are you sure you want to change the base?
finished! #23
Conversation
|
||
Player.prototype.hasWon = function() { | ||
var total = Player.total_score; | ||
if (total >= 100) { |
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.
you could consider a ternary operator here! :)
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.
just realized- you could one better than ternary here! you can just do: return (total >= 100);
, which will be a boolean :D
Nice job! I found your comments super helpful as I made my way through the js functions. I think you can simplify some of your scoring code, but what you have works as it's supposed to. Good descriptive tests- just make sure they're testing what you think they are. |
💯 |
Thanks so much, Jenna! Those were very helpful comments and I appreciate On Mon, Jun 20, 2016 at 9:24 PM, Jenna Nichols [email protected]
|
Aaargh. I finished this at 3pm yesterday and forgot to turn it in. Sorry!