11. exercise, is it true?


Why does it say this string is true?


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


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