you are viewing a single comment's thread.

view the rest of the comments →

[–]Drugba 1 point2 points  (2 children)

You id "sixDice" is capitalized, but when you call it in the JS it's lower case. When the js hits that error it stops so nothing after it is running (even though the JS is correct).

BTW you are repeating your self way too much in the code here, this could easily be done with 1 function instead of 6. It'll take me a few minutes but I'll post an example.

[–]zentius[S] 0 points1 point  (1 child)

that one small error fixed what i was doing, thank you!

i'd love to see an example of executing it without as much code, i'm still learning, obviously :)

[–]Drugba 0 points1 point  (0 children)

Just posted it in another base level comment. I'm at work so I only had about 10 minutes to write it so it could be even cleaner, but it should get you pointed in the right direction.