Skip to content

Conversation

@wavegxd
Copy link

@wavegxd wavegxd commented Aug 1, 2017

No description provided.

Copy link
Contributor

@mmmaaatttttt mmmaaatttttt left a 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) {
Copy link
Contributor

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);

Copy link
Contributor

@tigarcia tigarcia left a 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() {
Copy link
Contributor

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.

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.

3 participants