19.Math


#1

I have been at this for the pass 20 minutes and still can not find out what am i doing wrong, i have read some answers to it but it still does not work, it shows "Reference error: Else is not defined"

Here is my code :

("Jon".length * 2 / (2+1) === 2 )
{
console.log("The answer makes sense!");
}
Else
{
console.log("Error Error Error");
}


#2

You can't have an else unless you have an if as well.

The format for a simple if/else statement:

if (this condition is true) {
   do this thing;
} else {
   do this other thing;
}

#3

Thanks @albionsrefuge for your help, i tried it and it help :slightly_smiling:


#4

Also, else should all be lowercase letters, not uppercase first letter


#5

A post was split to a new topic: What am i doing wrong here?


#6