The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How would you improve this little jQuery Dice Roller?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #37033

    Trying to teach myself a few things, and am wondering how I could improve this code:

    Basically I’m after alternate/better ways to code it, and ways to streamline it. Thanks in advance guys!

    Also, how do you guys remember what does and doesn’t have a semicolon after it?

    I’ve added comments where I’ve changed
    The , was changed to ; because the variable “value” was being re-declared instead of redefined

    Functions don’t need to end in ; just lines within the function


    Ah, awesome. Good catches Karl. Thanks mate!


    I was trying to find a font that would change numbers to die faces
    wait for it….

    … no dice

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.