I need help with question 11


#1

i am learning javascript

on 11 I'm to compare the number of the length to 10 but am unaware of the syntax needed because it doesn't show it

i looked for similar post but don't see one

would appreciate some help


#2

in exercise 2 you already learned the syntax for getting the length. You can always go to earlier exercises if you need a syntax refresher.


#3

assuming your word is cart you can try some thing like "cart".length this will compute as 4
so if you try the following code

if ( "cart".length===10)
{
console.log("yes the length is 10");
}
else
{
console log("no the length is not 10")
}

above code should give a message "no the length is not 10"


#4