I need Help on: Getting started with programing .13 Comparisions


#1

Here is my code:

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

i know its the same as when you first enter the problem, but i have no idea what to do

my code from the editor: https://www.codecademy.com/en/courses/getting-started-v2/2/2?curriculum_id=506324b3a7dffd00020bf661#

please help!


#2

Hi here

On these just remove the 122 and 8

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

console.log("Goody Donaldson".length 8);

The same for that remove the 16

console.log(8*2 16);

#3

You have to compare the length to the number. Remember that .length counts the amount of characters inside the quote marks, including spaces.


#4

Thanks a bunch!!! :slightly_smiling:


#5

but i think its bugged, i tried it and it didnt work, or im just stupid :wink:


#6

Hi try to post your new code with the error that you get.


#7

my new code:


console.log(15 > 4);

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

console.log("xKingConduitx".length 8);
console.log(8*2 16);


what my problem is:


Oops, try again. There was a problem with your syntax.


#8

Hi you should make Them true so here

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

Add < between length and 122 like that

console.log("Xiao Hui".length < 122);

Here

console.log("xKingConduitx".length 8);

Add between length and 8 > like that

console.log("xKingConduitx".length > 8);

And here

console.log(8*2 16);

Add between 2 and 16 === like that

console.log(8*2 === 16);

#9

Thanks! It worked! :sunglasses:


#10

liked all of your comments :grin:


#11

me too i like the comments :laughing:


#12

he is really good at helping people, he is either a moderator or someone who should be a moderator :+1: