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

David Wilcox
David Wilcox
12,827 Points

Methods challenge task

Task 2 keeps saying task 1 is no longer passing even though I've made no changes to task 1.

Consider adding the code as of step one, then the code as of step two, so that we can better assist you :)

1 Answer

Ok, I checked it out, and it seems most errors will say "Task 1 is no longer passing" instead of giving specifics like "Parse Error" or " ___ is undefined". Which is weird, because I can get it to display both of those if I leave the error of Task 2 while trying Task 1 again.

Be sure you have quotes around the word when using the ".indexOf()" method, and be sure you're not missing the semi-colon at the end of the line:


should work for you.

Maybe Jim Hoskins can explain why it throws that vague error. It certainly doesn't help with solving the issues :P Good luck with the rest of the course!