What am i doing wrong here?


#1

if ("Jon".length * 2 / (2+1) === )
{
console.log("The answer makes sense!");
} else {
console.log("error error error");
}
what am i doing wrong here?


19.Math
#2

The === sign is a comparison operator in javascript. Currently you aren't comparing what's on the left of the operator to anything else.

Have a look at:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators


#3

Thank you so much! that really helped me out!


#4

A post was split to a new topic: Help me here where do i mistake?


#5

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