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 Arrays Creating Arrays

Tiffany Stelman
Tiffany Stelman
5,362 Points

JavaScript stage 4 arrays - challenge task

Hey guys, something strange is happening! I'm passing question 1 which asks : Set the 'mixture' variable to an array with 3 string elements, 2 numbers and one Boolean. And then when I input question 2 I get an error saying there was something wrong with my first question! Help!

var mixture = ['string', 'string', 'string', 1, 2, true]; var guides = new array(42);

2 Answers

I think the issue is with your code for the second task. The array needs to be capitalized:

var guides = new Array(42);
Tiffany Stelman
Tiffany Stelman
5,362 Points

Thanks! that fixed it. Strange that it made the 1st question not pass though..