Section 28 : Conclusion halp


I seem to be stuck on 28. Conclusion: Part 2 from the Java course. My code looks like this:

if ( 13 % 6 === 1 )
console.log=("I finished my first course!");
console.log=("You are wrong and this computer will now self-destruct.");

In the console it shows the 'true' answer, and if I change the 'if' numbers around, it will switch to the 'false' answer. So the code does seem to be working.
Every time I try and submit the code though I get the message, "Oops, try again. It looks like you didn't log anything!"

What am I doing wrong?


Do you see that?

    console.log =

You've just overwritten the built in console.log code and replaced by whatever is on the right of that =.

The good news is that you can restore it by reloading/refreshing the web page.

Before you do that you are going to want to peek back a bit and refresh your memory on how to use console.log().

Let me know how you get on with that.


Oh yikes, I knew it would be something simple like that. I've been grinding all day though HTML/CSS and now Java. I think that's my cue for a break. Thanks again for the help :smile:


It still doesn't work for me.


Tell me more. At least show me your code.