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 Loops, Arrays and Objects Tracking Data Using Objects Create an Array of Objects

Task 1 No longer passes?

I keep getting an 'Oops! It looks like Task 1 no longer passes!' when I try to complete this challenge. Task 1 is to create an array literal in var objects. Task 2 is to put 3 objects (each with two properties) into the array. Doing so gives me the error. Is there anything I'm not getting?

script.js
var objects = [{name: Brett, gen: male}, {name: Sally, gen: female}, {name: Jack, gen:NA}];
index.html
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JavaScript Objects</title>
</head>
<body>
<script src="script.js"></script>
</body>
</html>

2 Answers

sigh. Nevermind.

I have the same problem!