title: Using a Javascript switch statement, how can I count the number of elements (numbers only) in an array?
body: <p>I am trying to count the number of elements (<em>numbers only</em>) in an array using a <strong>switch statement</strong> in the function. I honestly don't know exactly what this code would look like. But this is what I have so far</p>
  
  <pre><code>&lt;script language="JavaScript"&gt;
  //an array of numbers
  var number = [1,"o",2,3,"a",0];
  //a switch statement
  
  switch (number) {
      //Not sure what would go here....
  
      break;
  }
    //display result of count
  alert(count)
  &lt;/SCRIPT&gt;
  </code></pre>