Lesson 17


#1

Hi all,
My code seems correct. But, I get the "oops" error that the console has the wrong message of " You got a true". My statement is true. Why is that? thanks for your help!

if (10 === 10)
{
console.log = ("You got a true!");
}

else {
console.log = ("You got a false!");
}


#2

You have to do it exactly.:smiley:

Since it says to write "You got a true", you need to take out the exclamation mark.:smiley:


#3

Thanks for your quick response! I failed to include the "!" in my post. So, yes, the console also shows the "!", as stated in the script. Thanks