Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Foundations Strings Methods

Chen Coello
Chen Coello
862 Points

Bug?

Everybody is saying that when they add the .Lenght to the var quick = Quicklenght = quick; it accepts it, but mine does not. Is it a bug? Please help.

3 Answers

Tim Knight
Tim Knight
28,888 Points

I'm guessing you're talking about the first change question that asks you "Update the variable of 'quickLength' on line 18, to assign the length of the string 'quick'."

The code on line 18 is:

var quickLength = quick;

You just want to modify that to use the length method so it should read:

var quickLength = quick.length;
Chen Coello
Chen Coello
862 Points

But I already tried that. Yes.

Tim Knight
Tim Knight
28,888 Points

That was the exact answer I just typed into the change and it accepted it successfully. Is that the correct question in the challenge that you're stuck at?

Hi There Chen, I am not sure what exactly you require but the length property is used in the following way

var name = "Chen Coello";
console.log(name.length); // outputs 11

hope that helps. cheers

Chen Coello
Chen Coello
862 Points

That does not help at all.

Ari Winokur
PLUS
Ari Winokur
Courses Plus Student 6,844 Points

I notice you are spelling Length as Lenght in your question. Is that where your issue is?