I'm a 13 year old aspiring coder. I have a bug in my code, but sadly I can't figure out what's wrong. Here it is, if someone could help me that'd be great!
// Here is an example of using the greater than (>) operator.
console.log(15 > 4 true); // 15 > 4 evaluates to true, so true is printed.
// Fill in with >, <, === so that the following print out true:
console.log("Xiao Hui".length 8 true);
console.log("Goody Donaldson".length 15 true);
console.log(8*2 16 true);
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:
< Less than
<= Less than or equal to
= Greater than or equal to
=== Equal to
!== Not equal to
Try to use each of the operators above.
Choose the correct comparison operator to make each of the four statements print out true.