Am I Understanding this correctly(pushing to arrays) : Hey I know this is a newb question so I pre-appologize but im not quite sure why my code is not working here. It is supposed to filter out odd and even numbers and put them into an array but I think my (lack of)understanding is off on getting the numbers into the array how I want. thanks in advance.


    function oddAndEven(numbers){
    var odd = [];
    var even = [];
    for(num = 0; num < numbers.length; numbers++){
    if(numbers[num] % 2 == 0){
    even.push(numbers[num]);
    }else if(numbers[num] % 2 == 1){
    odd.push(numbers[num]);
    }
  
    }
    console.log(odd + "is odd and " + even + " is even");
    }

    iqTest(11221122);