28/28 Message but still console print


#1

if (15 < 20)
{
console.log=("I finished my first course!");
}
else
{
console.log=("I did not finish the course");
}
Can someone please tell me what i did wrong. The console is printing the line: "I finished my first course!" but i still get the message from the website: Oops, try again. It looks like you didn't log anything!


#2

How to print something in JS:

console.log('hello world')

You'll need to refresh your page before you do that though, since you've overwritten the function, that's what assignment does.


#3

you've wrote console.log= which is re-assigning console.log to equal ("I finished my first course!")

Refresh the page and write it properly the way you have been previously

An example is below


console.log("I finished my first course!")

#4

Still isnt working:
if (15 < 30)
{
console.log("I finished my first course!")
}
else
{
console.log("I didnt finish the course")
}

Something more wrong?
Im instead getting a message, but this time: Oops, try again. Your code doesn't look quite right. Check the Hint if you need help!

Thanks for your patience


#5

Nevermind, i had to refresh the website, thanks alot!