'How would I turn this forEach to a forLoop?

so I know that the colors and color are different but I don't really know how to go about changing it to a forLoop function.

var numbers = [1,2,3,4,5,6,7,8,9,10];

numbers.forEach(function(color){
  if(color % 3 ===0) {
    console.log(color);
  }
});


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source