6. Booleans - Stuck on this, error message


#1

I'm stuck getting this to see if the string's length is greater than 10. Where am I going wrong with this code?

document.write( "I'm coding like a champ" );
"I'm coding like a champ".length > 10

#2

Hello @matthew_lamb,

In your case, you need to put the condition that checks the length of the string inside of the document.write() function. Hope this clears your problem!


#4

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