28 conclusion Part 2


#1


Replace this line with your code.


#2

If you need help with the exercise you have to post your code, link to the exercise and short explanation of the problem.


#3

Hi, I'm stuk with this code if/else, have tried many many without success. Please help!
// Not sure where to begin? Check the Hint!
if ( I'm stuck in trouble=true )
{
console.log(I can't see a way out here)
}
else
{
console.log("I'm finished my first course!")
}


#4

Ok, so you were asked to write if else construction that will print out to the console "I finished my first course!".

There are two things to consider in your code.

First one, in the else statement you are printing to the console "I'm finished my first course!", to pass this exercise you have to carefully follow instructions so it should be "I finished my first course!".

The second one, because you are printing this message in the else statement the condition of if must evaluate to false. There are many expressions that are falsy, like 2 > 8, "Anne" === "Lisa" etc...


#5

Thank you!. Now I see the point. I finally passed this level.


#6

You're very welcome!


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.