Welcome to the Treehouse Community
Looking to learn something new?
Justin LeFurjah12,347 Points
Why does it say that task 1 is no longer passing, when it worked a second ago and nothing has been changed?
So here is the deal: I get an error message about task 1 not passing, although it just worked and nothing has been changed, if I give a wrong answer to task 2.
Shouldn't it tell me that task 2 is wrong?
Here is a link to task 1 working:
Here is a link to task 2 (deliberately) not working.
As far as I can tell, nothing that has been done in task 2 should be of consequence to the code from task one.
Can someone please explain to me why this is not a bug?
p.s. Here is a link to the test in question: http://teamtreehouse.com/library/creating-arrays
1 is right 2 is wrong therefore 1 is wrong
logic can be found in other tasks in the JS Foundations course.
Austin Whipple29,687 Points
I've noticed that script errors on subsequent tasks will throw errors claiming that you broke the first one, when really it's just that the entire script is wrong and it blames it on the first item. Try it with an empty or valid array and see if that helps.