Syntax error unexpected number 122


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);


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.


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


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