What is wrong with my code?


#1



https://www.codecademy.com/courses/getting-started-v2/2/6?curriculum_id=506324b3a7dffd00020bf661


Goal was to debbug code and I think I did everything right.
Then it appeared this message: " It looks like your if/else didn't log 'You got a true!' to the console."

if (10 === 10) 
{
  console.log("The condition is true");
} 
else 
{
   console.log("This condition is false");
}


#2

Well, you didn't.

You logged "The condition is true". It should have been 'You got a true!'.


#3

I tried to do that at first but then say: "There was a problem with your syntax."


#4

Can you paste in your updated code


#5

if (10 === 10)
{
console.log.("You got a true");
}
else
{
console.log("The condition is false");
}


#6

you have a . between console.log and ( );
take out the .


#7

and still will not work.


#8

show me updated code


#9

and now works :slight_smile: Tnx! I lost all morning about that.


#10