Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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?