siemka, robie kurs programowania na udemy i mam nastepujące zadanie:
Let's get some practice with conditional statements! In order to make your code repeatable and testable, I'm asking you to write your code inside a pre-defined function (something we have not yet covered in the course).
Write your code between the two comments in index.js
You will automatically have access to a variable called num. Please do not try and define num or change num in any way! I will be setting the value of num when I test your code, so that I can test different outcomes
If num is an even number, print out "even". Don't do anything if num is an odd number.
Myślałam że zrobilam je dobrze ale wyskakuje mi ze powinnam zrobic cos zeby nic sie nie dzialo jak liczba bedzie nieparzysta xd Fajnie by było jakby ktoś mnie troche nakierował jak skończyć te zadanie, będe mega wdzięczna
function isEven(num){
//WRITE YOUR CODE BETWEEN THIS LINE: ↓ ↓ ↓ ↓
console.log("even");
//AND THIS LINE ↑↑↑↑↑
}