28/28 My Code Should Work


#1

I'm looking at this code and I don't see anything wrong with it. I'm getting an error message saying that I didn't log the correct string to the console.

Here is my code:

// Not sure where to begin? Check the Hint!
if(15+5===20){
console.log("This is true.");}
else{
console.log("This is false.")}


#2

Maybe you should re-read the Instructions:

01. Write your own if / else statement.
02. The only instruction is that 
    the result of evaluating the IF statement is
    a log to the console of "I finished my first course!".

#3

Which one is this is it in making a website


#4

Or is it in JavaScript


#5

Thanks for the help Leo :smile: I have to say though, even though I know that Codecademy couldn't have known... this isn't my first time completing a course. So the substring isn't true :smiley:


#6

This is the 28th lesson in Getting Started with Programming (Javascript)


#7

It was in Javascript.


#8

I just typed:

if(3-4 ===-1)
{
console.log("I finished my first course!");
}
else
{
console.log("I failed nooo!");
}

Just have to type "I finished my first course!" and yours will work. And my little test is complete yes it can do negative numbers.


#9

I already finished that