I am needing to find the correct way to have javascript loop through an array, find all numbers that are divisible by 3, and push those numbers into a new array.
Here is
Check if the number is divisible by 3 if so then add it to array. Try this
function loveTheThrees(array) { for (i = 0, len = array.length; i < len; i++) { if(array[i] % 3 == 0){ three.push(array[I]); } }