I am stuck on math 19 please help



oops try again there was a problem with your syntax

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


The === is a comparison operator. It will compare what is to the left of it to what is on the right. Currently, nothing is on the right.

There's also an if missing before your condition as well as a complete else statement.


Just handing someone correct code when they can't pass an exercise isn't really going to help them in the long run. You can use search engines and find answers to many of the exercises.

Or you can use the same search engines and input 'if statement javascript', 'else statement javascript', 'comparison operator', etc.

Personally, I've learned far more from studying the discussions on this forum and explanations of why code isn't working than from pasting someone's answer into my screen and pressing submit.


I get your point but when someone is displaying syntax issues seeing correct code helps them.. especially in this context where you had explained the theory behind their issue..

My answer clearly demonstrated how to write the If statment whilst your answer helped them understand why.. I think you've been pedantic tbh




ok in future I'll write out an example which doesn't reflect correct code but rather emulates syntax


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