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 trialRichard Brown
6,950 PointsUse the appropriate console method to print out the details object.
console.dir(details);
This does not work.. why?
const name = "Andrew";
const details = { favouriteLanguage: "JavaScript", age: 33, children: 3 }
const errorMessage = "Something bad has occurred";
console.dir(details);
2 Answers
Rich Zimmerman
24,063 Pointslooks like you're missing
console.log(name);
from the previous task, which might be why it's failing.
Richard Brown
6,950 Pointsthank you..
Mariusz Dabrowski
6,132 PointsMariusz Dabrowski
6,132 PointsI 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.