Bonus Challenge: logEvenOrOdd ()

Write a function called logEvenOrOdd () that takes an integer num as input. The function should iterate through numbers from 1 to num and log whether each number is even or odd. If the number is even, it should log "{number} is an even number", and if the number is odd, it should log "{number} is an odd number

Here is the input you should enter:

And here is the output you should get after you write proper code for this challenge:

Odd
Even
Odd
Even 
Odd
Even
Odd 
Even 
Odd
Even

console.log(logEvenOrOdd(10))