I'm Stuck on an if/else Statement, Help would be appreciated!


#1

I'm doing the JavaScript lesson and I can't for the life of me figure out what's wrong. So here's my current code:

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


#2

@marcp97,

Forgive my sarcasm, but how does an "if" statement work when there's no "if" in front of the parenthesis?


#3

That would make a lot of sense! Thanks, that's why I'm on here haha.


#4

It's not a problem, I like trying to add sarcasm to make things a little more comical. No just keep at it, attention to detail is what destroys programs.