Conclusion part 2


#1

Hello, Fellows

I'm in trouble with the conclusion of this course. Part 2

I'm doing that:

if (10.000 > 1000) = true;
return "Right Answer";// Not sure where to begin? Check the Hint!
else
console.log("I finished my first course!");

And the Error message is:

Oops, try again. There was a problem with your syntax.

SyntaxError: Unexpected token


#2

@codewhiz71790 Can't post anymore, because it thinks I'm new to the forums, but here's what you need.

if (10.000 > 1000) { //You don't need "= true", that is implied, but you are missing the curly brackets
    console.log("Right Answer"); //return statements only work in functions, not in if/else statements
} else {
    console.log("I finished my first course!");
}

#3

SyntaxError: Illegal return statement

Well, Dantemp

I did print exactly like you said, but the SyntaxError above has appeared !


#4

Oh my Goshhh I'm a moronnn. Sorry, man. I appreciate your attention


#5

Hello Dan. Could you help me once more ?

What I am doing wrong now ?

if (10.000 > 1000)// Not sure where to begin? Check the Hint!
console.log("I don't give a ■■■■!");
else
console.log("I finished my fist course!")

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


#6

Should be

if (10.000 > 1000){
console.log("I don't give a ----!");
}
else{
console.log("I finished my fist course!");
}

I hope that helps.

FYI swearing is not tolerated here on Codecademy and if I see you doing it again I will report it to a moderator, but I'll let you off this time because you seem nice.


#7

Ok. thanks for help. Stay cool!, man


#8

No problem.   


#9

A post was split to a new topic: 28. Conclusion: Part 2 -- Why is it wrong? Writes that syntax errors and token