Computer Science, asked by sahilnagra89, 5 months ago

what does the following code print out?
var numbers=[1,2,3,4,5,6,7,8,9,10];
var colours=["red","orange","yellow","green"];
numbers.forEach(function(color){
if(color%3===0){
console.log(color);}});

Answers

Answered by nithishdev509
0

Answer:

The code prints out these numbers:

3, 6 and 9 in new line each!

Similar questions