13. Comparisons


#1

So here is my code:


But as you can see I keep getting an error message and I'm super confused. Anyone mind helping?


#2

Hey @stetim94 can you help meeeee?


#3

Why do you specifically ask for me?

Let's do a example, see this line:

console.log("Xiao Hui".length 7);

Now between length and 7 you need to add a comparison operator (<=, >=, !== or ===) to make the statement true, just like you in line 7 with console.log(8*2===16);


#4

Ohhh I see. Okay. Hmm. Oh and because you were on a bit ago... and you know what you're talking about.


#5

Can you help with a similar problem? I had completed the code by it keep telling me there is a syntax error.

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


#6

8*2 equals 16, not six. Only thing i can find which seems off. Seems you overwrote the one with a equal sign.


#7

Do you have any other suggestion on what wrong with the syntax? I work the problem again and still the the error. Thanks for the help.

// 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 === 16);


#8

you left this:

console.log("Xiao Hui".length  122);
console.log("Goody Donaldson".length  8);
console.log(8*2  16);

inside the exercise? that will trigger an error


#9

hola alguien me ayuda no reconoce Verdana
h1{
font:Verdana;
color: #576D94;
p{
font-size: 18px;
color:#4A4943;
}c


#10

this is off-topic, anyway, the property you look for is font-family, not just font


#11

// 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(125 > 122);
console.log(5 < 8);
console.log(8*2 === 16);