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

I 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.

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

console.dir(details);

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi 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! :sparkles:

Oh 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".