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
Britni Alexander
Courses Plus Student 11,316 PointsJavaScript Foundations Arrays first code challenge
I am having an issue with the first code challenge for the Arrays section. It says "Set the 'mixture' variable to an array with 3 string elements, 2 numbers and one boolean." I answered as follows: var mixture = ['string', 'string2', 'string3', 4, 5, True]; Am I crazy, or should this work? The error just says "null" Nick Pettit Jim Hoskins
6 Answers
Nick Pettit
Treehouse TeacherDon't capitalize True. JavaScript is a case sensitive language. :)
David Valles
18,487 PointsHi Britni, The boolean value is: true (all lowercase).
- David
Martin Murphy
1,267 Points= sign haha
Martin Murphy
1,267 PointsWhat's wrong with my answer? I keep getting null? var mixture ['hello','world','fight', 1, 2, true];
Britni Alexander
Courses Plus Student 11,316 PointsThanks y'all! I was thinking in Pyhton. Opps!
ilyass mougar
Courses Plus Student 2,858 Pointsvar mixture = ['string', 'string2', 'string3', 4, 5, true];