just started learning JS and had a test about loops and wasn't successful in finding an answer to this: I would like to see how many times the number 1 appears in the arrray. All i was able to do is get a true answer when 1 appears in the array. Been trying to figure this out since last Wednesday.. Thanks!
var v = [1, 3, 5, 4, 3, 0, 0, 1, 1];
count = 1;
for (var i = 0; i < v.length; i++){
console.log (count == v[i])
}