21. Modulo and if/else *not working?*


Can someone tell me whats wrong here?
It keeps telling me, my comparison does not evaluate to true. But the code says its true, but the numver is odd???

//An example of an if/else statement with modulo in the condition

if(console.log(10%2===0) )
console.log("The first number is even");
console.log("The first number is odd");


you shouldn't have a console.log() inside your if statement


ty very much, helped me out!!!