title: Function gives input number * the lenght of array instead of input number * array values (javascript)
body: <p>If I use number 5 as input, I want my function to return 5*4*3*2*1.
  The problem is that my for each loop returns 5 * 5, meaning the input multiplied with the length of my array instead of the input multiplied with the values of the array (wich should be 4, 3, 2, 1).</p>
  
  <pre><code>function FirstFactorial(num) {
  var a = 1;
  var numbers = new Array();
  
  for (var i = 0; i &lt; num; i++){
      numbers[i] = a;
      a++;
  }
  
  for (integer in numbers){
      factor = num * numbers[integer];
  }    
  return factor;    
  }   
  
  FirstFactorial(5);       
  //EXPECTED OUTPUT: 5*4*3*2*1 = 120
  </code></pre>