troubleshooting Question

How to get total count of passed in subject based on marks?

Avatar of sunilgohel
sunilgohel asked on
7 Comments3 Solutions125 ViewsLast Modified:
I have array of marks for one student like below
var marks = [15,38,35,25,19,28];

Now I want to get the total count of passed in subject in which marks above minimum passing marks (28)
For e.g. 38+35+28 >=28 = 3

Need solution in javascript or jQuery.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros