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 trialPHASEKA MALATJI
431 Pointssomething wrng here the console.dir functions is not evaluating
console.dir() not picking up
const name = "Andrew";
const details = { favouriteLanguage: "JavaScript", age: 33, children: 3 }
const errorMessage = "Something bad has occurred";
console.dir(details);
1 Answer
Dan Weru
47,649 PointsHello, 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
47,913 PointsMichael Hulet
47,913 PointsHey 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
47,649 PointsDan Weru
47,649 PointsI get it. I thought demonstrating was better than explaining ... given that challenge was rather straightforward.