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 trialGino Mangnoesing
6,744 PointsStuck in Challenge
The Error says: "Bummer! You didn't write console
anywhere in your code."
But I did include console in my code. I tried it on my own machine and it works there. So I'm just wondering what could be the cause. Maybe a bug?
var name = "Andrew";
var details = { favouriteLanguage: "JavaScript", age: 31, children: 2.4 }
var errorMessage = "Something bad has occurred";
console.dir(details)
2 Answers
Ken Alger
Treehouse TeacherGino;
A couple of things, strictly based on the code you have posted above.
- I believe the challenge stills wants/needs the information from Task 1.
- You don't have a semi-colon to end the Task 2 line of code.
Happy coding,
Ken
Gino Mangnoesing
6,744 PointsAh, I see! Thanks Ken.
I missed this note below the question:
Important: The code you write in each task should be added to the code written in the previous task.
Martina Carrington
15,754 PointsMartina Carrington
15,754 PointsHi Ken Alger , i have try console.dir(details); and console.dir(); i keep getting errors . maybe i'm doing some wrong
Ken Alger
Treehouse TeacherKen Alger
Treehouse Teachermartina carrington:
Post your code and let's take a look.
Ken