title: Using a 'for' loop to count how many times a specific number appears in an array
body: <p>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!</p>
  
  <pre><code>var v = [1, 3, 5, 4, 3, 0, 0, 1, 1];
  
  count = 1;
  
  for (var i = 0; i &lt; v.length; i++){
  
        console.log (count == v[i])
  
  }
  </code></pre>