Data Type III: Booleans


#1

https://www.codecademy.com/courses/getting-started-v2/1/6?curriculum_id=506324b3a7dffd00020bf661#

got this error msg.

Oops, try again. Make sure you typed in the string exactly, used .length, and used the right comparator.
My code is

var str1 = "I'm coding like a champ";

var strLength = str1.length;
if(str1.length>10)
 console.log("Big string");


#2

Seems you've over complicated this by a mile,

this was my answer

"I'm coding like a champ".length >10

Don't need to declare any variables :slight_smile:


#3

Thank you very much!

With that I was able to complete javascript course.:slight_smile:


#4

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