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 Node.js Basics 2017 Introduction to Node.js The Console

Use the appropriate console method to print out the details object.

console.dir(details);

This does not work.. why?

app.js
const name = "Andrew";
const details = { favouriteLanguage: "JavaScript", age: 33, children: 3 } 
const errorMessage = "Something bad has occurred";

console.dir(details);

2 Answers

Rich Zimmerman
Rich Zimmerman
24,063 Points

looks like you're missing

console.log(name);

from the previous task, which might be why it's failing.

Mariusz Dabrowski
Mariusz Dabrowski
6,132 Points

I ran into the same issue and could not figure out why it wasn't passing - luckily I was aware of this forum and saw this question.

Maybe an update to the error would help somebody that's stuck on the same question - it was really discouraging to hit this wall so early on, thinking something was being done wrong.

thank you..