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 trialkj2
5,933 PointsI dont know what Im doing wrong, its saying my code on line 18 is not passing
The challange is "Update the variable of 'indexOfBrown' on about line 19, to find the index of the string of "brown" in the string 'quick'."
I have
line 18---- var quickLength = quick.length;
line 19---- var indexofBrown =quick; .indexOf('brown');
2 Answers
Andrew Shook
31,709 PointsYou need to remove the semi-colon after the word "quick" on line 19.
var indexofBrown =quick*;* .indexOf('brown');
it needs to be:
var indexofBrown =quick.indexOf('brown');
kj2
5,933 Pointsthank you! its always the little things I over look