Hey guys im stuck on part 13 comparison Javascript


#1

// 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,30 < 122);
console.log("Goody Donaldson".length, 5!==8);
console.log(8 * 2 === 16);

i kept getting this
true
8 true
15 true
true

and then i get a error message saying "Oops, try again.
It looks like the second console.log() call didn't print true.

where am i going wrong?


#2

Your code has a lot of things wrong, so here's mine:

// 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); //"Xiao Hui" has a length of 8, which is smaller than 122 - logs "true"
console.log("Goody Donaldson".length > 8); //"Goody Donaldson" has a length of 15, which is bigger than 8 - logs "true"
console.log(8 * 2 === 16); //8 * 2 is 16, which is equal to itself - logs "true"

#3

Glad to see im not the only one 11.30 on a saturday night. lol