title: Select on change not passing value
body: <p>Im trying to get a function to count the number of times a number appears in an array based on a selection from a dropdown.</p>
  <p>If I do it direct with <code>favouriteCar(3);</code> I get a value of 2 in the console.</p>
  <p>However if I select from the drop down, nothing happens.</p>
  <pre><code>&lt;label for=&quot;cars&quot;&gt;Choose a car to see how many people like it:&lt;/label&gt;
  
  &lt;select name=&quot;cars&quot; id=&quot;cars&quot; onchange=&quot;favouriteCar(this.value);&quot;&gt;
      &lt;option value=&quot;0&quot;&gt;Please select a car...&lt;/option&gt;
      &lt;option value=&quot;1&quot;&gt;Audi&lt;/option&gt;
      &lt;option value=&quot;2&quot;&gt;VW&lt;/option&gt;
      &lt;option value=&quot;3&quot;&gt;BMW&lt;/option&gt;
      &lt;option value=&quot;4&quot;&gt;MG&lt;/option&gt;
      &lt;option value=&quot;5&quot;&gt;Suzuki&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;script&gt;
      const carlikes = [2, 4, 1, 4, 1, 5, 3, 3, 1, 4, 1];
  
      function favouriteCar(value) {
  
          var count = 0;
  
          carlikes.forEach((v) =&gt; (v === value &amp;&amp; count++));
          
          return count;
  
          console.log(count); 
      }
  &lt;/script&gt;
  </code></pre>