Conclusion 2: "Oops, it looks like you didn't log anything" ... BUT I DID!


I created my if/else statement and logged the exact sentence I was supposed to, but Codeacademy says that I didn't log anything. Error: "Oops, try again. It looks like you didn't log anything!"

Can anyone help here??

// Not sure where to begin? Check the Hint!
var myName = "Lily"
if (myName.length==5){
else {
    console.log="I finished my first course!";



Remove your = sign. Remember a console.log syntax:

console.log("something in here");


oh, of course. thanks! however, even with correct syntax now it says "your code doesn't look quite right."


var myName = "Lily"
if (myName.length==5){
else {
console.log("I finished my first course!");



Try putting a semicolon here.


still nothin.



You replaced the console.log with that string so it doesn't contain the normal console.log code anymore. It is easy to restore it by reloading/refreshing the web page.


oh my god. refreshing worked, and somehow that just makes me more frustrated with this :wink: haha, thank you!!

I'm not sure what you mean by the "normal" console.log code though.


When you use a command like console.log, there is code that your web browser's JavaScript interpreter runs to make that command work.

When you do something like

console.log = "something";

then you have replaced that underlying code so console.log doesn't work any more.