Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Node.js Basics 2017 Introduction to Node.js The Console

PHASEKA MALATJI
PHASEKA MALATJI
431 Points

something wrng here the console.dir functions is not evaluating

console.dir() not picking up

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

1 Answer

Dan Weru
Dan Weru
47,637 Points

Hello, your are doing great. This was as step by step challenge ... check closely to see the change in each step.

console.log(name); // don't delete the code you used in previous step
console.dir(details);

Happy coding!

Michael Hulet
Michael Hulet
47,843 Points

Hey One!

It's frowned upon in the Community to post code that can be copied and pasted and just work, especially answers to challenges. It's ok to post code, but make sure that you also post a thorough explanation about why that code is the right code and how it works, but also make sure that the code can't be copied and pasted to pass a challenge, too. I've redacted the original code in this answer accordingly. If you'd like, feel free to re-post your code (or something similar that doesn't break the copy/paste rule), but be sure to include a thorough explanation of how it works and why its the right code for this situation. Thanks for helping out in the Community!

Dan Weru
Dan Weru
47,637 Points

I get it. I thought demonstrating was better than explaining ... given that challenge was rather straightforward.