Even or odd

Report a typo

You are given an array of numbers called numbers. Write a cycle that logs even for each even number and odd for odd numbers. If the number is 0, the program must stop processing the numbers.

For 0, the program should not print any messages.
Write a program in JavaScript
function checkEvenOrOdd(numbers) {
// write your code here
}
___

Create a free account to access the full topic