Comparison Syntax Error - Getting Started in Programming


#1

A syntax error keep popping up on my comparison operators lesson. Below is what i have completed: // 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);

console.log("Xiao Hui".length < 122);
console.log("Goody Donaldson".length >8);
console.log(8*2 ===6);

I keep getting the error message:Oops, try again. There was a problem with your syntax.

Can someone help with this? What am i missing?


#2

You were supposed to put "<", ">", and "===" on the console.logs they gave you, not make another one. Just take out

And you'll be fine. Hope it helped!:smiley: