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 trialEvan Buschor
1,790 PointsI think this questions is bugged. Just try to complete it yourself and you will see.
error said I didn't include "console" but I clearly did. I think its criteria is bugged.
const name = "Andrew";
const details = { favouriteLanguage: "JavaScript", age: 33, children: 3 }
const errorMessage = "Something bad has occurred";
console.dir(details);
2 Answers
Jennifer Nordell
Treehouse TeacherHi there, Evan Buschor! Nope, it's not bugged. Before you submit your answer, if you look carefully above the dark part where you enter your code, you should see this text:
Important: In each task of this code challenge, the code you write should be added to the code from the previous task.
You removed the console.log()
from the previous step. These tasks are cumulative and you should not alter code from the previous step unless directed to do so. It's expecting one console.log()
for the name
and one console.dir()
for the details
.
Hope this helps!
Evan Buschor
1,790 PointsOh okay! That helps. I think the error message caused the confusion. If you don't see the notice prior to the error message covering it, it looks as though it doesn't see the "console".