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
Rich Braymiller
7,119 PointsLoops and arrays quiz
This code creates an array, but there are two things missing. Fill in the blanks to complete the array. var shopping = "milk", "cookies", "eggs"
Answer should be "[]"
just when I thought i was getting a handle on javascript, apparently according to this quiz, the instructor was lying to me the entire time. smh
5 Answers
Erik Uusitalo
8,096 PointsMaybe you forgot the semicolon?
var shopping = ["milk", "cookies", "eggs"];
Joel Bardsley
31,258 PointsHi Rich, I've just been through and found the quiz question you're referring to. Just double checking, have you put both square brackets in the first space or did you open and close them in the separate spaces accordingly? I'm getting no problems proceeding past this question successfully.
Rich Braymiller
7,119 Pointsclarify? I put []
Rich Braymiller
7,119 Pointsany help would be great...
Yassine Atlagh
3,944 Pointsvar shopping = ["milk", "cookies", "eggs" ]
Rich Braymiller
7,119 Pointsno the quiz is as follows:This code creates an array, but there are two things missing. Fill in the blanks to complete the array.
var shopping = __________ "milk", "cookies", "eggs" ;
Erik Uusitalo
8,096 PointsThat is just weird.. I really don't know then.
Corey Huddleston
13,273 PointsYour screen may have been cutting off the last empty space ___________. This may happen if you resized your screen to a smaller size. Some of TreeHouse's quiz questions aren't entirely reponsive