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 trialTiffany Stelman
5,362 PointsJavaScript 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
Kristen Law
16,244 PointsI think the issue is with your code for the second task. The array
needs to be capitalized:
var guides = new Array(42);
Tiffany Stelman
5,362 PointsThanks! that fixed it. Strange that it made the 1st question not pass though..