Javascript Medium 1

🧠 Code Challenge


function printEvenNumbers(numbers) {
  for (let i = 0; i < numbers.length; i++) {
    if (numbers[i] % 2 === 0) {
      console.log(numbers[i] + " is even.");
    }
  }
}

let nums = [1, 4, 7, 10, 13, 16];
printEvenNumbers(nums);


    
  

Explain what this function does. Speak clearly and use keywords.