How do I add the values of checkboxes? via /r/learnprogramming


How do I add the values of checkboxes?

I want to create a simple JavaScript function where the correct answer has a value of 1 and in the end it sums up all the ones you got correct and adds them together. I've seen examples of something similar using increment methods but that seems a bit hard because there's a lot of lines I understand but don't fully get enough to write it and use it on my own. Any ideas guys?

Submitted July 13, 2017 at 06:05PM by Fred_72
via reddit http://ift.tt/2vicqr5

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s