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 trialWesen Aredo
Python Web Development Techdegree Student 3,954 PointsGet string length.
how to display the length of Quick on number one question?
i tried this code and it doesn't work
var length=quick.length;
console.log(length);
1 Answer
Jason Anello
Courses Plus Student 94,610 PointsHi Wesen,
You don't have to display it.
Task 1 states "Update the variable of 'quickLength' on line 18, to assign the length of the string 'quick'."
You only have to change line 18, not add in any extra code.
Here's line 18:
var quickLength = quick;
Currently the string quick
is being assigned to quickLength
but quickLength
should be assigned the length of the string quick
So you only need to update that line so that it stores the length of the string.
Let me know if you're still not sure.