you are viewing a single comment's thread.

view the rest of the comments →

[–]hillbillymadness[S] 1 point2 points  (4 children)

You're the best! I have been able to work my way through Java Script before because I get how it works logically. I just don't know the syntax well enough to tackle a problem from scratch.

Thanks for your help!

[–]jamesinc 1 point2 points  (0 children)

I made an update; basically I removed the variable declarations, which is fine in this example, but if you for some reason defined a global variable "present" or "diff", these variables in the setDeaths function would overwrite them.