I am stuck on math 19 please help


#1

https://www.codecademy.com/courses/getting-started-v2/3/2?curriculum_id=506324b3a7dffd00020bf661#

oops try again there was a problem with your syntax


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


#2

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.


#5

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.


#6

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


#7

https://discuss.codecademy.com/guidelines


#8

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


#9

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