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!

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 Empty JavaScript Object

What am I doing wrong!?!?

I just can't figure this challenge out.....It's like the easiest one ever too! Could someone just point me in the right direction? Thanks!


<!DOCTYPE html>
  <meta charset="utf-8">
  <title>JavaScript Objects</title>
<script src="script.js"></script>
Kevin Faust
Kevin Faust
15,353 Points

you didnt post your javascript code

I didn't write any. Just look at the challenge and you'll see the task.

2 Answers

Kevin Faust
Kevin Faust
15,353 Points

step 1: create a variable called paris

step 2: assign it to a blank object literal

I don't think I can say it any simpler. solution for reference:

var paris = {};

Ugh, forgot the = sign. Thanks both of you for your help!

Rune Andreas Nielsen
Rune Andreas Nielsen
5,354 Points

Hi Gabriel.

You need to make an JavaScript object with a reference poiting to it named "paris".

The way you make a javascript object is by using {};

var paris = Insert the way you make an object here

That´s a hint, write back if you still cannot solve it.