Lesson 28. What's incorrect?


#1

I was supposed to write my own if/else statement, but I keep get it incorrect:
if (0,2) {
console.log("yes");
}
else {
console.log('no');
}
It keeps saying,"Oops, try again. It looks like you didn't log the correct string to the console! Make sure to use exactly the string shown."


#2

Can you tell me, in English, what you are trying to accomplish with this bit code:

if (0,2)

Don't go further, just tell me about that bit.


#3

Wow I didn't notice the comma. I meant 0*2 ===0


#4

but when I fix that, it continues to say "oops, try again"


#5

Could you post your updated code -- just so that we are all looking at the same thing?