Stuck on 13 Comparisons


Says unexpected Token

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


Your .length needs to be after the string
like so:

console.log("pink lipstick".length > 6);

Read more here



In Javascript if you
use a string like "I am a string"
Javascript automatically crates a so-called length-property for that string
a console.log("I am a string".length);
would display a number Value 13

Now you update the code using one of the operators less-than< or greater-than>
in your code

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


The .length part of the code checks how long the string attacked to it is. For example, "Xiao Hui".length checks how long "Xiao Hui" string is. You want to put comparison symbols after the "Xiao Hui".length function because that is what you are comparing the numbers to.