Syntax error unexpected number 122


#1


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


hello fellow coders,
I am getting an unexpected error, while I work on my comparisons. Below is my code. Can anyone please tell me where am I going wrong?
thanks :slight_smile:


Replace this line with your code. 
console.log("Xiao Hui".length 122 > 100);
console.log("Goody Donaldson".length  8 == 8);
console.log(8*2  16 < 50);


#2

You have syntax errors because after '.length' property you miss an operator, so your expressions are invalid. On the third line 8*2 [no operator] 16 < 50. Where I put [no operator] there you should insert an operator.


#3

Thank you so much! I was able to finish the exercise.


#4

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