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


#1

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");
}
else
{
console.log("The first number is odd");
}


#2

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


#3

ty very much, helped me out!!!