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
0
Answer:
The code prints out these numbers:
3, 6 and 9 in new line each!
Similar questions
English,
2 months ago
Math,
2 months ago
Science,
5 months ago
CBSE BOARD XII,
5 months ago
Accountancy,
10 months ago
Math,
10 months ago
Science,
10 months ago