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 trialravishankersargunam
Courses Plus Student 467 PointsYou didn't pass in the `name` variable in to the `log` method.
You didn't pass in the name
variable in to the log
method.
console.log("Hello This is Ravishanker");
console.error("This is Error, on looading page");
console.dir({name:"M Sakthi", age:33});
1 Answer
Steven Parker
231,268 PointsNever remove any code given in a challenge (unless asked to explicitly).
You will need to keep the constants that were defined for you at the beginning of the challenge. Then you will add code to the end to accomplish the tasks.
Your first task is "Use the log
method on the console
object to print out the name
variable." And name was one of the constants that had been defined for you. You will use it to complete this task.