21 need a little help



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

this is what i put for my code

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


This shouldn't be in quotes

if(10 % 2 === 0) {

I don't understand this bit what's going on here, CC is asking you to console.log The first number is even


console.log("The first number is even");

Comparisons don't go in quotes.. Comparisons explained !
Numbers after integers and don't go in quotes.


I keep getting this
Oops, try again. You have to use the modulo (%) operator to continue!


Paste in your updated code


if("true") {
(console.log("The first number is even"));
} else {
console.log("The first number is odd");


Read my answer again slowly and properly I said not to put quotes around the comparison, you don't need to change the comparison


oh.... hahah wow
i see what it saying now