-
Notifications
You must be signed in to change notification settings - Fork 83
completed tests and functions #31
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
base: master
Are you sure you want to change the base?
Conversation
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.
Nice work on the testing exercises!
| var y = Math.floor(Math.random() * (650 - 100) + 100); | ||
|
|
||
| //{white0: 38, red1: 40, red0: 37, white1: 39} | ||
| if (shapes.indexOf(Math.floor(Math.random() * (4 - 0))) === 0) { |
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.
Rather than produce a random number in each if statement, save the result as a variable outside of the if.
var num = Math.floor(Math.random() * 4);
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.
I didn't see any changes for the prototypes exercise. Make sure you get that in.
| @@ -0,0 +1,37 @@ | |||
| $(function() { | |||
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.
Good start. Keep going on this when you can. It's a good jquery/ajax exercise.
No description provided.