#28 JavaScript: Error message. What am I doing wrong?


#1

Oops, try again. It looks like you didn't log the correct string to the console! Make sure to use exactly the string shown.

var myN= 8;

if (myN > 6){    
    console.log(true);
}else{    
    console.log(false);
} if (true){
     console.log("I finished my first course!");
}
else{
     console.log("I'm not quite finished with my first course!");
}

#2

I don't see anything wrong with your code but I don't think that is what they're asking of you.

Maybe keep it simple?

if (8 >6) {
console.log("I finished my first course!");
} else {
console.log("I'm not quite finished with my first course!");
}


#3

Hi, even with this simple code is gives : TypeError: console.log is not a function
Annyone an idea ?


#4

try this
declar variable then do as yours


#5

If you are seeing that message it usually means that at some point you ran your program with console.log() = something;.

You can restore the built-in console.log code by refreshing/reloading the web page.