11. exercise, is it true?


#1




Why does it say this string is true?


#2

the true is caused by this line:

length < 6

length is a undefined variable, which will give a zero:

"i'm coding like a champ" .length
console.log(length )

0<6 is true, that is why true is displayed


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.