How do you get past 15 in Javascript?


#1

if ("Astrid Chen" <= 6);

console.log("You have a short name!");

}
else {

}
console.log("You have a short name!");

What did I do wrong?


#2

Hi ! semi colon missing and not parenth├Ęses but semi colon . I m new but I ve experienced lot of of problem with if/else statment .


#3

try adding .length after "Astrid Chen". So it should look like this...

if ("Astrid Chen".length <= 6);

then the rest looks ok. I'm just a beginner myself as well so I'm not 100% positive but that's what I'm thinking.