Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Foundations Arrays Creating Arrays

Pablo Grippo
Pablo Grippo
25,765 Points

I have a problem with arrays.

I don't know why the code challenge throws me an error

var mixture = ['some','other','arrays',4,5,true];

There was an error with your code: ReferenceError: Can't find variable: array

3 Answers

Hi Pablo,

It should be Array The rest looks good.

Usually when it says a previous task is no longer passing it's an error in your current task. It throws you off though.

Maybe try refreshing the page.

Your code passes task 1 for me.

Pablo Grippo
Pablo Grippo
25,765 Points

The problem is in task 2. I write this code for task 2:

var guides = new array(42);

And it says me that task 1 is no longer passing but task 1 was ok.

I don't know what is happening. Thank you in advance for your help!