Lesson 19 - Math confusing error message



I keep getting "Oops, try again. Make sure your if/else statement evaluates to true!" however the screen displays my console.log with the true evaluation, which doesnt make sense. If it displays the true evaluation then surely the if/else staement evaluates to true.

Thanks in advance.

if ("Jon".length * 2 / (2+1) ===2 )
    console.log("Error Error Error");
    console.log("Lachie Loses")


The code checker is looking for "The answer makes sense!" to be logged. It isn't smart enough to expect that you would remove that.

You can use the Reset code button to go at it again.


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