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 trialGena Aivazian
16,574 PointsIm not sure what im doing wrong, i tried everything but i think there is a bug in this assignment
I think there is a bug cos it get an error no matter what i put in
const name = "Andrew";
const details = { favouriteLanguage: "JavaScript", age: 33, children: 3 }
const errorMessage = "Something bad has occurred";
console.log(details);
2 Answers
Steven Parker
231,261 PointsI'm guessing you're on task 2, where the instructions say "Use the appropriate console method to print out the details object." But the appropriate message to print out an object is "dir" instead of "log".
And the instructions also say "Important: In each task of this code challenge, the code you write should be added to the code from the previous task.", so the statement for task 1 should still be there (but is missing from this code).
Gena Aivazian
16,574 PointsAh! my bad! my previous code was not present. Thank you!