What is wrong with my "syntax"? (I'm up to No. 13)


#1

I'm up to "getting started with programming" exercise 13 "comparisons" on the javascript one.
I don't know what this syntax message error means what am I doing wrong?

HERE'S THE QUESTIONS AND INSTRUCTIONS:
Comparisons
So far we've learned about three data types:

strings (e.g. "dogs go woof!")
numbers (e.g. 4, 10)
booleans (e.g. false, 5 > 4)
Now let's learn more about comparison operators.

List of comparison operators:

Greater than
< Less than
<= Less than or equal to
= Greater than or equal to
=== Equal to
!== Not equal to
Instructions
Try to use each of the operators above.

Choose the correct comparison operator to make each of the four statements print out true.
?
Hint
When you use the .length, the value that is returned is a number. Therefore, when you enter something like "Jenny".length === 5;, the computer is evaluating whether the number of letters in Jenny is equal to 5.

HERE'S MY CODE:
// Here is an example of using the greater than (>) operator.
console.log(15 > 4); // 15 > 4 evaluates to true, so true is printed.

// Fill in with >, <, === so that the following print out true:
console.log("Xiao Hui".length 122);
console.log("Goody Donaldson".length 8);
console.log(8*2 16);

HERE'S MY ERROR MESSAGE:
Oops, try again. There was a problem with your syntax.

AND MY ANSWER IS:
"frog".length === 4;


#2

You didn't compare between :


#3

so do i do the "frog" thing inbetween the console.logs?


#4

I'm not sure where that "frog" thing is coming from.

Here is an explanation on how to do exercise 13. Comparisons:


#5

THANK YOU. SO MUCH. I finally got past. thanks


#6

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